Skip to content

Commit

Permalink
Merge pull request #2585 from jasonayre/main
Browse files Browse the repository at this point in the history
append failing test reproduction
  • Loading branch information
aure committed Nov 30, 2021
2 parents 4203ffd + 9acd815 commit 68c9870
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tests/AudioKitTests/Extension Tests/AVAudioPCMBufferTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Foundation
import AVFoundation
import AudioKit
import XCTest

class AVAudioPCMBufferTests: XCTestCase {
func testAppend() {
let path = Bundle.module.url(forResource: "TestResources/drumloop", withExtension: "wav")
let file = try? AVAudioFile(forReading: path!)
let loopBuffer = file!.toAVAudioPCMBuffer()!
XCTAssertNoThrow(loopBuffer.append(file!.toAVAudioPCMBuffer()!))
}
}

0 comments on commit 68c9870

Please sign in to comment.