ObjFW  Check-in [a0a579e290]

Overview
Comment:Add a test for -[capitalizedString].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a0a579e2908a4ac55538b3effdf555c92584855f7107680d0310d2ff9d42a8d7
User & Date: js on 2012-07-12 19:39:04
Other Links: manifest | tags
Context
2012-07-14
09:59
objfw-compile: Always add -Wall. check-in: 7e95e4a343 user: js tags: trunk
2012-07-12
19:39
Add a test for -[capitalizedString]. check-in: a0a579e290 user: js tags: trunk
02:57
objfw-config.in: Use newlines between flag types. check-in: b415f514ae user: js tags: trunk
Changes

Modified tests/OFStringTests.m from [49a0aabf35] to [12bf7dfb21].

140
141
142
143
144
145
146



147
148
149
150
151
152
153
	    R([s[1] lowercase]) && [s[1] isEqual: @"abc"])

	TEST(@"-[uppercaseString]",
	    [[s[0] uppercaseString] isEqual: @"3𝄞1€SÄT"])

	TEST(@"-[lowercaseString]", R([s[0] uppercase]) &&
	    [[s[0] lowercaseString] isEqual: @"3𝄞1€sät"])




	TEST(@"+[stringWithUTF8String:length:]",
	    (s[0] = [OFMutableString stringWithUTF8String: "\xEF\xBB\xBF"
							   "foobar"
						   length: 6]) &&
	    [s[0] isEqual: @"foo"])








>
>
>







140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
	    R([s[1] lowercase]) && [s[1] isEqual: @"abc"])

	TEST(@"-[uppercaseString]",
	    [[s[0] uppercaseString] isEqual: @"3𝄞1€SÄT"])

	TEST(@"-[lowercaseString]", R([s[0] uppercase]) &&
	    [[s[0] lowercaseString] isEqual: @"3𝄞1€sät"])

	TEST(@"-[capitalizedString]", [[@"džbla tdžst TDŽST" capitalizedString]
	    isEqual: @"Džbla Tdžst Tdžst"])

	TEST(@"+[stringWithUTF8String:length:]",
	    (s[0] = [OFMutableString stringWithUTF8String: "\xEF\xBB\xBF"
							   "foobar"
						   length: 6]) &&
	    [s[0] isEqual: @"foo"])