Differences From 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]
To Artifact [1ba1ce211e]:
- File tests/OFString/OFString.m — part of check-in [62abf39400] at 2008-10-25 22:25:50 on branch trunk — newWithFooString -> newAsFooString. (user: js, size: 1289) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
15 16 17 18 19 20 21 | #import "OFString.h" /* TODO: Do real checks */ int main() { | | | | | | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #import "OFString.h" /* TODO: Do real checks */ int main() { OFString *s1 = [OFString newAsCString: "test"]; OFString *s2 = [OFString newAsCString: ""]; OFString *s3; OFString *s4 = [OFString newAsConstCString: NULL]; [s2 appendCString: "123"]; s3 = [s1 clone]; [s4 setTo: s2]; if (![s1 compareTo: s3]) puts("s1 and s3 match! GOOD!"); else { |
︙ | ︙ |