You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Tests/WhisperKitTests/UnitTests.swift
+37
Original file line number
Diff line number
Diff line change
@@ -1067,6 +1067,43 @@ final class UnitTests: XCTestCase {
1067
1067
XCTAssertEqual(result.segments.first?.text," and so my fellow americans ask not what your country can do for you ask what you can do for your country.")
1068
1068
}
1069
1069
1070
+
func testCallbacks()asyncthrows{
1071
+
letconfig=tryWhisperKitConfig(
1072
+
modelFolder:tinyModelPath(),
1073
+
verbose:true,
1074
+
logLevel:.debug,
1075
+
load:false
1076
+
)
1077
+
letwhisperKit=tryawaitWhisperKit(config)
1078
+
letmodelStateExpectation=XCTestExpectation(description:"Model state callback expectation")
0 commit comments