Reverted removal of a line in MPPLanguageDetectorTests.mm

This commit is contained in:
Prianka Liz Kariat 2023-12-22 20:59:22 +05:30
parent a7f3321dbb
commit ba8316abd3

View File

@ -113,6 +113,10 @@ static NSString *const kExpectedErrorDomain = @"com.google.mediapipe.tasks";
NSArray<MPPLanguagePrediction *> *expectedRuLanguagePredictions = NSArray<MPPLanguagePrediction *> *expectedRuLanguagePredictions =
@[ [[MPPLanguagePrediction alloc] initWithLanguageCode:@"ru" probability:0.9933616f] ]; @[ [[MPPLanguagePrediction alloc] initWithLanguageCode:@"ru" probability:0.9933616f] ];
[self assertResultsOfDetectLanguageOfText:ruText
usingLanguageDetector:languageDetector
approximatelyEqualsExpectedLanguagePredictions:expectedRuLanguagePredictions];
NSString *zhText = @"分久必合合久必分"; NSString *zhText = @"分久必合合久必分";
NSArray<MPPLanguagePrediction *> *expectedZhLanguagePredictions = @[ NSArray<MPPLanguagePrediction *> *expectedZhLanguagePredictions = @[
[[MPPLanguagePrediction alloc] initWithLanguageCode:@"zh" probability:0.505424f], [[MPPLanguagePrediction alloc] initWithLanguageCode:@"zh" probability:0.505424f],