Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

771 B
Raw Blame
@main
struct OnboardingDictationOutputPolicyTests {
    static func main() {
        var cases = 0
        for active in [false, true] {
            for dictation in [false, true] {
                for target: Int32? in [nil, 100, 200] {
                    let actual = OnboardingDictationOutputPolicy.usesSandbox(
                        onboardingPracticeActive: active,
                        isDictation: dictation,
                        targetProcessID: target,
                        fluidVoiceProcessID: 100
                    )
                    precondition(actual == (active && dictation && target != 200))
                    cases += 1
                }
            }
        }
        print("Passed \(cases) onboarding output routing cases")
    }
}