Differences From Artifact [e113d97e23]:
- File tests/OFStringTests.m — part of check-in [c6930c5141] at 2018-03-11 12:35:32 on branch trunk — OFString+PathAdditions: Split into per-type files (user: js, size: 37101) [annotate] [blame] [check-ins using]
To Artifact [bb51e4a860]:
- File
tests/OFStringTests.m
— part of check-in
[156b850131]
at
2018-03-11 12:55:20
on branch trunk
— Remove OF_PATH_* macros
These were way too simplistic, as paths differ in more than just that on
various operating systems. (user: js, size: 37241) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
549 550 551 552 553 554 555 | [[C(@"foo") stringByAppendingString: @"bar"] isEqual: @"foobar"]) TEST(@"-[stringByPrependingString:]", [[C(@"foo") stringByPrependingString: @"bar"] isEqual: @"barfoo"]) #ifdef OF_HAVE_FILES s[0] = [mutableStringClass stringWithString: @"foo"]; | > | > > > > | > > > | 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 | [[C(@"foo") stringByAppendingString: @"bar"] isEqual: @"foobar"]) TEST(@"-[stringByPrependingString:]", [[C(@"foo") stringByPrependingString: @"bar"] isEqual: @"barfoo"]) #ifdef OF_HAVE_FILES s[0] = [mutableStringClass stringWithString: @"foo"]; # if defined(OF_WINDOWS) || defined(OF_MSDOS) [s[0] appendString: @"\\"]; # else [s[0] appendString: @"/"]; # endif [s[0] appendString: @"bar"]; s[1] = [mutableStringClass stringWithString: s[0]]; # if defined(OF_WINDOWS) || defined(OF_MSDOS) [s[1] appendString: @"\\"]; # else [s[1] appendString: @"/"]; # endif is = [stringClass stringWithString: s[1]]; [s[1] appendString: @"baz"]; TEST(@"-[stringByAppendingPathComponent:]", [[s[0] stringByAppendingPathComponent: @"baz"] isEqual: s[1]] && [[is stringByAppendingPathComponent: @"baz"] isEqual: s[1]]) #endif |
︙ | ︙ |