From ba8316abd3652e25920e5aa38fd22118c496c43d Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Fri, 22 Dec 2023 20:59:22 +0530 Subject: [PATCH] Reverted removal of a line in MPPLanguageDetectorTests.mm --- .../test/text/language_detector/MPPLanguageDetectorTests.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mediapipe/tasks/ios/test/text/language_detector/MPPLanguageDetectorTests.mm b/mediapipe/tasks/ios/test/text/language_detector/MPPLanguageDetectorTests.mm index f1186e68d..ad0b0eb92 100644 --- a/mediapipe/tasks/ios/test/text/language_detector/MPPLanguageDetectorTests.mm +++ b/mediapipe/tasks/ios/test/text/language_detector/MPPLanguageDetectorTests.mm @@ -113,6 +113,10 @@ static NSString *const kExpectedErrorDomain = @"com.google.mediapipe.tasks"; NSArray *expectedRuLanguagePredictions = @[ [[MPPLanguagePrediction alloc] initWithLanguageCode:@"ru" probability:0.9933616f] ]; + [self assertResultsOfDetectLanguageOfText:ruText + usingLanguageDetector:languageDetector + approximatelyEqualsExpectedLanguagePredictions:expectedRuLanguagePredictions]; + NSString *zhText = @"分久必合合久必分"; NSArray *expectedZhLanguagePredictions = @[ [[MPPLanguagePrediction alloc] initWithLanguageCode:@"zh" probability:0.505424f],