mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
17 lines
390 B
Swift
17 lines
390 B
Swift
import AVFoundation
|
|
import Foundation
|
|
import Testing
|
|
|
|
@testable import HaishinKit
|
|
|
|
@Suite struct AudioDeviceUnitTests {
|
|
@Test func release() {
|
|
weak var weakDevice: AudioDeviceUnit?
|
|
_ = {
|
|
let device = try! AudioDeviceUnit(0, device: AVCaptureDevice.default(for: .audio)!)
|
|
weakDevice = device
|
|
}()
|
|
#expect(weakDevice == nil)
|
|
}
|
|
}
|