test(语音日记): 端侧识别可用性探测冒烟测试(模拟器降级路径)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
link2026
2026-06-10 06:51:53 +08:00
parent 3f9a2af279
commit 7e8e692695

View File

@@ -0,0 +1,13 @@
import Testing
@testable import
struct SpeechDictationAvailabilityTests {
/// :isAvailable (SFSpeechRecognizer + supportsOnDeviceRecognition)
/// ; false(mic ), Xcode/macOS true ,
/// ,
@Test func isAvailableProbeIsStableAndDoesNotCrash() {
let first = SpeechDictationService.isAvailable
let second = SpeechDictationService.isAvailable
#expect(first == second)
}
}