ObjFW  Check-in [0bde0871bc]

Overview
Comment:Fix +[stringWithPath:] test on Win32 (it's \ there, not /!).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0bde0871bc8e1d98b66e9f028bf9b0b617da5a56c53920842aa1cd6fedafaab6
User & Date: js on 2010-04-11 18:04:41
Other Links: manifest | tags
Context
2010-04-11
20:12
Add +[fileExistsAtPath:] to OFFile. check-in: ebd1fc0d9a user: js tags: trunk
18:04
Fix +[stringWithPath:] test on Win32 (it's \ there, not /!). check-in: 0bde0871bc user: js tags: trunk
17:55
Add -[remoteAddress] to OFTCPSocket. check-in: 04dc76c8c3 user: js tags: trunk
Changes

Modified tests/OFStringTests.m from [b29e32f526] to [ef1e54d79a].

147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
	    isEqual: @"test: 123"])

	TEST(@"+[stringWithPath:]",
	    (s[1] = [OFString stringWithPath: @"foo", @"bar", @"baz", nil]) &&
#ifndef _WIN32
	    [s[1] isEqual: @"foo/bar/baz"] &&
#else
	    [s[1] isEqual: @"foo/bar/baz"] &&
#endif
	    (s[1] = [OFString stringWithPath: @"foo", nil]) &&
	    [s[1] isEqual: @"foo"])

	TEST(@"-[appendFormat:]",
	    [([s[0] appendFormat: @"%02X", 15]) isEqual: @"test: 1230F"])








|







147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
	    isEqual: @"test: 123"])

	TEST(@"+[stringWithPath:]",
	    (s[1] = [OFString stringWithPath: @"foo", @"bar", @"baz", nil]) &&
#ifndef _WIN32
	    [s[1] isEqual: @"foo/bar/baz"] &&
#else
	    [s[1] isEqual: @"foo\\bar\\baz"] &&
#endif
	    (s[1] = [OFString stringWithPath: @"foo", nil]) &&
	    [s[1] isEqual: @"foo"])

	TEST(@"-[appendFormat:]",
	    [([s[0] appendFormat: @"%02X", 15]) isEqual: @"test: 1230F"])