feat(account): add managed credits and cloud gateway
Introduce optional Apple account-backed credits with scoped gateway access while preserving local and BYOK paths. Refresh assistant behavior, tests, privacy disclosures, docs, and the website for the 2.0 experience.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// UtteranceBatchFallbackPolicyTests.swift
|
||||
// OSGKeyboardTests
|
||||
|
||||
import XCTest
|
||||
@testable import OSGKeyboardShared
|
||||
import XCTest
|
||||
|
||||
final class UtteranceBatchFallbackPolicyTests: XCTestCase {
|
||||
|
||||
@@ -33,6 +33,16 @@ final class UtteranceBatchFallbackPolicyTests: XCTestCase {
|
||||
)
|
||||
}
|
||||
|
||||
func testShouldRunAfterRecognitionFailureEvenWithRecoveredPartial() {
|
||||
XCTAssertTrue(
|
||||
UtteranceBatchFallbackPolicy.shouldRunBatchFallback(
|
||||
stitchedFinal: "恢复出的局部文本",
|
||||
partialSnapshot: "恢复出的局部文本",
|
||||
recognitionFailed: true
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
func testPreferredTranscriptPicksLongestCandidate() {
|
||||
let resolved = UtteranceBatchFallbackPolicy.preferredTranscript(
|
||||
batch: "今天很好,我们一起去公园吧",
|
||||
|
||||
Reference in New Issue
Block a user