Skip to content

Commit cd5bcce

Browse files
committed
Moved test case to new txt resource for multiple parts
1 parent ae39af2 commit cd5bcce

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

Test/Resources/Multiple_Parts.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* Issue 7: A string can span multiple lines */
2+
3+
NSString *multiLine = NSLocalizedString(@"Here is one line!"
4+
"And another"
5+
"And yet another", @"Multiple Lines");
6+
7+
8+
/* Issue 10: A string can have multiple parts */
9+
10+
NSLocalizedString(@"foo " @"bar", @"Test multi-part quoted strings");
11+

Test/Resources/Testcases.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ NSString *message = [NSString stringWithFormat:NSLocalizedString(@"\"%@\" has be
77

88
NSLocalizedString(@"%@ had been successfully added to the Address Book.\nWould you like to edit the card now?", nil);
99

10-
NSLocalizedString(@"foo " @"bar", @"Test multi-part quoted strings");
11-
1210
NSLocalizedString(@"Item %1$d of %2$d", @"Test positional params");
1311

1412
// some regular test cases

genstrings2.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/* End PBXAggregateTarget section */
2222

2323
/* Begin PBXBuildFile section */
24-
A7313BD5190A4F72007E130F /* Multiple_Lines.txt in Resources */ = {isa = PBXBuildFile; fileRef = A7313BD4190A4F72007E130F /* Multiple_Lines.txt */; };
24+
A7313BD5190A4F72007E130F /* Multiple_Parts.txt in Resources */ = {isa = PBXBuildFile; fileRef = A7313BD4190A4F72007E130F /* Multiple_Parts.txt */; };
2525
A775234214ACEF7A0035CDCA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A775234114ACEF7A0035CDCA /* Foundation.framework */; };
2626
A79499AD14C0D35500A8CCDE /* NSPredicateEditor.txt in Resources */ = {isa = PBXBuildFile; fileRef = A79499AC14C0D35500A8CCDE /* NSPredicateEditor.txt */; };
2727
A79499CF14C3052500A8CCDE /* CustomPrefix.txt in Resources */ = {isa = PBXBuildFile; fileRef = A79499CE14C3052500A8CCDE /* CustomPrefix.txt */; };
@@ -70,7 +70,7 @@
7070
/* Begin PBXFileReference section */
7171
55951CFE14BD3C1700E4A63E /* DTLocalizableStringEntry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DTLocalizableStringEntry.h; sourceTree = "<group>"; };
7272
55951CFF14BD3C1700E4A63E /* DTLocalizableStringEntry.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DTLocalizableStringEntry.m; sourceTree = "<group>"; };
73-
A7313BD4190A4F72007E130F /* Multiple_Lines.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Multiple_Lines.txt; sourceTree = "<group>"; };
73+
A7313BD4190A4F72007E130F /* Multiple_Parts.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Multiple_Parts.txt; sourceTree = "<group>"; };
7474
A775233D14ACEF7A0035CDCA /* genstrings2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = genstrings2; sourceTree = BUILT_PRODUCTS_DIR; };
7575
A775234114ACEF7A0035CDCA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
7676
A79499AC14C0D35500A8CCDE /* NSPredicateEditor.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = NSPredicateEditor.txt; sourceTree = "<group>"; };
@@ -258,7 +258,7 @@
258258
A7F65DDA14C040D00092E2EE /* Resources */ = {
259259
isa = PBXGroup;
260260
children = (
261-
A7313BD4190A4F72007E130F /* Multiple_Lines.txt */,
261+
A7313BD4190A4F72007E130F /* Multiple_Parts.txt */,
262262
FA35A34E16DFA12A001CB74A /* Localizable.strings */,
263263
A79499CE14C3052500A8CCDE /* CustomPrefix.txt */,
264264
A79499D114C30B0300A8CCDE /* CustomPrefix.plist */,
@@ -389,7 +389,7 @@
389389
isa = PBXResourcesBuildPhase;
390390
buildActionMask = 2147483647;
391391
files = (
392-
A7313BD5190A4F72007E130F /* Multiple_Lines.txt in Resources */,
392+
A7313BD5190A4F72007E130F /* Multiple_Parts.txt in Resources */,
393393
A7F65DDC14C040D00092E2EE /* Testcases.txt in Resources */,
394394
A7F65DE214C043850092E2EE /* Slashes_and_Quotes.txt in Resources */,
395395
A7F65DEB14C067990092E2EE /* Multiple_Tables.txt in Resources */,

0 commit comments

Comments
 (0)