Differences From Artifact [7769c4140e]:
- File
tests/OFStringTests.m
— part of check-in
[fcaa549324]
at
2012-10-16 14:47:55
on branch trunk
— A few more API improvements.
This should make it more future-proof, as adding new options is easier
than adding new methods for each and every combination of options. (user: js, size: 22277) [annotate] [blame] [check-ins using]
To Artifact [bb5fb35102]:
- File tests/OFStringTests.m — part of check-in [ac51f5f0cf] at 2012-12-06 00:14:47 on branch trunk — Improve -[hash] of OFNumber and OFObject. (user: js, size: 22277) [annotate] [blame] [check-ins using]
︙ | |||
116 117 118 119 120 121 122 | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | - + | TEST(@"-[appendString:] and -[appendUTF8String:]", R([s[1] appendUTF8String: "1๐"]) && R([s[1] appendString: @"3"]) && R([s[0] appendString: s[1]]) && [s[0] isEqual: @"tรคsโฌ1๐3"]) TEST(@"-[length]", [s[0] length] == 7) TEST(@"-[UTF8StringLength]", [s[0] UTF8StringLength] == 13) |
︙ |