Skip to content

Commit

Permalink
more descriptive failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
joewalsh committed Jun 8, 2017
1 parent 3b4e61e commit 9f0457f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WikipediaUnitTests/Code/TWNStringsTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ - (void)testiOSTranslationStringForBracketSubstitutionsAndMismatchedTokens {
if ([localizedString containsString:@"{{"]) {
NSString *lowercaseString = localizedString.lowercaseString;
if ([lowercaseString containsString:@"{{plural:%"]) {
XCTAssertNotNil([pluralizableStringsDict objectForKey:key], @"Localizable string with PLURAL: needs an entry in the corresponding stringsdict file");
XCTAssertNotNil([pluralizableStringsDict objectForKey:key], @"Localizable string %@ in %@ with PLURAL: needs an entry in the corresponding stringsdict file. This likely means that this language's Localizable.stringsdict hasn't been added to the project yet.", key, lprojFileName);
XCTAssertFalse([lowercaseString containsString:@"{{plural:%2"], @"Only one plural per translation is supported at this time. You can fix this in scripts/localizations.swift.");
} else {
XCTAssertTrue(false, @"Unsupported {{ }} in localization");
Expand Down

0 comments on commit 9f0457f

Please sign in to comment.