Differences From Artifact [453b60b8cb]:
- File tests/OFString/OFString.m — part of check-in [cf85bee74f] at 2008-10-05 19:20:33 on branch trunk — Reworked String API. (user: js, size: 1316) [annotate] [blame] [check-ins using]
To Artifact [c0f30552d4]:
- File
tests/OFString/OFString.m
— part of check-in
[b597d49f43]
at
2008-10-08 23:15:26
on branch trunk
— Multiple changes, see details.
* OFObject getMem: renamd to getMemWithSize:.
* OFString compare: renamed to compareTo:.
* Exceptions don't throw itself anymore.
* Exceptions include an error string now.
* Exceptions now got raise and string.
* New methods for OFFile:
* changeModeOfFile:toMode:
* changeOwnerOfFile:toOwner:andGroup:
* delete:
* link:to:
* symlink:to:
* OFFile isEndOfFile renamd to atEndOfFile
* OFNotImplementedExeception newWithObject:andMethod renamed to
newWithObject:andSelector:.
* Tests updated accordingly.
* TODO list added. (user: js, size: 1320) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
25 26 27 28 29 30 31 | OFString *s4 = [OFString newWithConstCString: NULL]; [s2 append: [OFString newWithConstCString: "123"]]; s3 = [s1 clone]; [s4 setTo: s2]; | | | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | OFString *s4 = [OFString newWithConstCString: NULL]; [s2 append: [OFString newWithConstCString: "123"]]; s3 = [s1 clone]; [s4 setTo: s2]; if (![s1 compareTo: s3]) puts("s1 and s3 match! GOOD!"); else { puts("s1 and s3 don't match!"); return 1; } if (![s2 compareTo: s4]) puts("s2 and s4 match! GOOD!"); else { puts("s1 and s3 don't match!"); return 1; } if (!strcmp([[s1 append: s2] cString], "test123")) |
︙ | ︙ |