Skip to content

Commit

Permalink
Fix test normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachNagengast committed May 23, 2024
1 parent b847da6 commit 524a10d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/WhisperKitTests/UnitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1110,11 +1110,11 @@ final class UnitTests: XCTestCase {

// Select few sentences to compare at VAD border
// TODO: test that WER is in acceptable range
XCTAssertTrue(testResult.text.normalized.contains("and then I would kind of do this"), "Expected text not found in \(testResult.text.normalized)")
XCTAssertTrue(chunkedResult.text.normalized.contains("and then I would kind of do this"), "Expected text not found in \(chunkedResult.text.normalized)")
XCTAssertTrue(testResult.text.normalized.contains("and then I would kind of do this".normalized), "Expected text not found in \(testResult.text.normalized)")
XCTAssertTrue(chunkedResult.text.normalized.contains("and then I would kind of do this".normalized), "Expected text not found in \(chunkedResult.text.normalized)")

XCTAssertTrue(testResult.text.normalized.contains("And that would happen every single paper"), "Expected text not found in \(testResult.text.normalized)")
XCTAssertTrue(chunkedResult.text.normalized.contains("And that would happen every single paper"), "Expected text not found in \(chunkedResult.text.normalized)")
XCTAssertTrue(testResult.text.normalized.contains("And that would happen every single paper".normalized), "Expected text not found in \(testResult.text.normalized)")
XCTAssertTrue(chunkedResult.text.normalized.contains("And that would happen every single paper".normalized), "Expected text not found in \(chunkedResult.text.normalized)")

XCTAssertTrue(testResult.text.normalized.contains("But then came my 90 page senior".normalized), "Expected text not found in \(testResult.text.normalized)")
XCTAssertTrue(chunkedResult.text.normalized.contains("But then came my 90 page senior".normalized), "Expected text not found in \(chunkedResult.text.normalized)")
Expand Down

0 comments on commit 524a10d

Please sign in to comment.