Skip to content

Commit 97c95e4

Browse files
committed
Add another test case for track length
1 parent 1b4cba0 commit 97c95e4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Tests/AudioKitEXTests/SequencerTrackTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ class SequencerTrackTests: XCTestCase {
138138

139139
XCTAssertEqual(track.length, 4.01, "Track length should be extended with note event position + duration greater or equal to existing track length")
140140

141+
track.add(noteNumber: 60, position: 1.0, duration: 5.0)
142+
143+
XCTAssertEqual(track.length, 6.01, "Track length should be extended with note event position + duration greater or equal to existing track length")
144+
141145
track.playFromStart()
142146
XCTAssertTrue(track.isPlaying)
143147
let audio = engine.startTest(totalDuration: 5.0)

Tests/AudioKitEXTests/ValidatedMD5s.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let validatedMD5s: [String: String] = [
2121
"-[SequencerTrackTests testLoop]": "3a7ebced69ddc6669932f4ee48dabe2b",
2222
"-[SequencerTrackTests testOneShot]": "3fbf53f1139a831b3e1a284140c8a53c",
2323
"-[SequencerTrackTests testTempo]": "1eb7efc6ea54eafbe616dfa8e1a3ef36",
24-
"-[SequencerTrackTests testNoteBounds]": "6679c7b949d28130549c6a1eb4ceaf59",
24+
"-[SequencerTrackTests testNoteBounds]": "f3b3935e30380367c15652c0a76a8a57",
2525
"-[DryWetMixerTests testBalance0]": "789c1e77803a4f9d10063eb60ca03cea",
2626
"-[DryWetMixerTests testBalance1]": "3932bc5d49cbefd4a9dd587d16f4b81c",
2727
"-[DryWetMixerTests testDefault]": "45a639729d8698a28f134bbe4ccc9d6c",

0 commit comments

Comments
 (0)