Skip to content

Commit

Permalink
Reverted removal of a line in MPPLanguageDetectorTests.mm
Browse files Browse the repository at this point in the history
  • Loading branch information
priankakariatyml committed Dec 22, 2023
1 parent a7f3321 commit ba8316a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ - (void)testClassifyWithL2CModelSucceeds {
NSArray<MPPLanguagePrediction *> *expectedRuLanguagePredictions =
@[ [[MPPLanguagePrediction alloc] initWithLanguageCode:@"ru" probability:0.9933616f] ];

[self assertResultsOfDetectLanguageOfText:ruText
usingLanguageDetector:languageDetector
approximatelyEqualsExpectedLanguagePredictions:expectedRuLanguagePredictions];

NSString *zhText = @"分久必合合久必分";
NSArray<MPPLanguagePrediction *> *expectedZhLanguagePredictions = @[
[[MPPLanguagePrediction alloc] initWithLanguageCode:@"zh" probability:0.505424f],
Expand Down

0 comments on commit ba8316a

Please sign in to comment.