Overview
Comment: | Fix a few OFString tests. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 0.5 |
Files: | files | file ages | folders |
SHA3-256: |
2b9408a2a54377df8121bec815a90bf0 |
User & Date: | js on 2011-08-03 16:25:57 |
Other Links: | branch diff | manifest | tags |
Context
2011-08-30
| ||
16:25 | Set version to 0.5.4 in 0.5 branch. check-in: 8e1a29fa84 user: js tags: 0.5 | |
2011-08-03
| ||
16:25 | Fix a few OFString tests. check-in: 2b9408a2a5 user: js tags: 0.5 | |
2011-07-18
| ||
23:47 | Fix a bug (hopefully the last!) in blocks. check-in: 86169923d6 user: js tags: 0.5 | |
Changes
Modified tests/OFStringTests.m from [ac5088ce3b] to [d0b2683202].
︙ | ︙ | |||
400 401 402 403 404 405 406 | withString: @""]) && [s[0] isEqual: @""]) EXPECT_EXCEPTION(@"Detect OoR in " @"-[deleteCharactersFromIndex:toIndex:] #1", OFOutOfRangeException, { s[0] = [OFMutableString stringWithString: @"πΓΆΓΆ"]; | | | | | | | > > > > > > > > > > > > > > > > > > > | 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 | withString: @""]) && [s[0] isEqual: @""]) EXPECT_EXCEPTION(@"Detect OoR in " @"-[deleteCharactersFromIndex:toIndex:] #1", OFOutOfRangeException, { s[0] = [OFMutableString stringWithString: @"πΓΆΓΆ"]; [s[0] deleteCharactersFromIndex: 2 toIndex: 4]; }) EXPECT_EXCEPTION(@"Detect OoR in " @"-[deleteCharactersFromIndex:toIndex:] #2", OFOutOfRangeException, [s[0] deleteCharactersFromIndex: 4 toIndex: 4]) EXPECT_EXCEPTION(@"Detect s > e in " @"-[deleteCharactersFromIndex:toIndex:]", OFInvalidArgumentException, [s[0] deleteCharactersFromIndex: 2 toIndex: 0]) EXPECT_EXCEPTION(@"OoR " @"-[replaceCharactersFromIndex:toIndex:withString:] #1", OFOutOfRangeException, [s[0] replaceCharactersFromIndex: 2 toIndex: 4 withString: @""]) EXPECT_EXCEPTION(@"OoR " @"-[replaceCharactersFromIndex:toIndex:withString:] #2", OFOutOfRangeException, [s[0] replaceCharactersFromIndex: 4 toIndex: 4 withString: @""]) EXPECT_EXCEPTION(@"s>e in " @"-[replaceCharactersFromIndex:toIndex:withString:]", OFInvalidArgumentException, [s[0] replaceCharactersFromIndex: 2 toIndex: 0 withString: @""]) TEST(@"-[replaceOccurrencesOfString:withString:]", (s[0] = [OFMutableString stringWithString: @"asd fo asd fofo asd"]) && R([s[0] replaceOccurrencesOfString: @"fo" withString: @"foo"]) && [s[0] isEqual: @"asd foo asd foofoo asd"] && |
︙ | ︙ |