Skip to content

Commit 89b1726

Browse files
committed
Updated Snap enum case names
- updated affected tests
1 parent 1b55efd commit 89b1726

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mambaSharedFramework/HLSInterstitialValueTypes.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ public struct HLSInterstitialAlignment: FailableStringLiteralConvertible, Equata
1313
public enum Snap: String, CaseIterable {
1414
/// client SHOULD locate the segment boundary closest to the scheduled resumption point from the
1515
/// interstitial in the Media Playlist of the primary content and resume playback of primary content at that boundary.
16-
case snapIn = "IN"
16+
case `in` = "IN"
1717

1818
/// client SHOULD locate the segment boundary closest to the START-DATE of the interstitial in the
1919
/// Media Playlist of the primary content and transition to the interstitial at that boundary.
20-
case snapOut = "OUT"
20+
case out = "OUT"
2121
}
2222

2323
/// the set of snap options for aligning interstitial content

mambaTests/Util Tests/InterstitialTagBuilderTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class InterstitialTagBuilderTests: XCTestCase {
6363
func decorateAndTest(_ tagBuilder: InterstitialTagBuilder) -> HLSTag {
6464

6565
let duration: Double = 10.0
66-
let alignment = HLSInterstitialAlignment(values: [.snapIn, .snapOut])
66+
let alignment = HLSInterstitialAlignment(values: [.in, .out])
6767
let restrictions = HLSInterstitialSeekRestrictions(restrictions: [.skip, .jump])
6868
let playoutLimit: Double = 30.0
6969
let resumeOffset: Double = 5.0

mambaTests/Util Tests/Value Types/HLSInterstitialValueTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class HLSInterstitialValueTests: XCTestCase {
2929
XCTAssertEqual(HLSInterstitialAlignment(values: vals).values.count, 2)
3030

3131
// test de-duping
32-
vals.append(HLSInterstitialAlignment.Snap.snapIn)
32+
vals.append(HLSInterstitialAlignment.Snap.in)
3333
XCTAssertEqual(HLSInterstitialAlignment(values: vals).values.count, 2)
3434

3535
// create from string

0 commit comments

Comments
 (0)