ObjFW  Check-in [612a252fdf]

Overview
Comment:clang does not reuse constant strings, thus fix test to use the same.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 612a252fdf7ccfcea9e7dc8328c2efc5a7afde4683540d87e17b9f1655426c5e
User & Date: js on 2010-01-25 22:34:44
Other Links: manifest | tags
Context
2010-01-25
22:39
Add of_atomic_cmpswap32 and spinlocks to atomic.h. check-in: 212482d8c6 user: js tags: trunk
22:34
clang does not reuse constant strings, thus fix test to use the same. check-in: 612a252fdf user: js tags: trunk
22:14
Check for atomic ops in configure.ac. check-in: c2af363418 user: js tags: trunk
Changes

Modified tests/OFArray.m from [9fed90b848] to [64707b9f4f].

61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
	    [[a[1] objectAtIndex: 0] isEqual: c_ary[0]] &&
	    [[a[1] objectAtIndex: 1] isEqual: c_ary[1]] &&
	    [[a[1] objectAtIndex: 2] isEqual: c_ary[2]])

	TEST(@"-[indexOfObject:]", [a[0] indexOfObject: c_ary[1]] == 1)

	TEST(@"-[indexOfObjectIdenticalTo:]",
	    [a[0] indexOfObjectIdenticalTo: c_ary[1]] == 1)

	TEST(@"-[replaceObject:withObject:]",
	    [m[0] replaceObject: c_ary[1]
		     withObject: c_ary[0]] &&
	    [[m[0] objectAtIndex: 0] isEqual: c_ary[0]] &&
	    [[m[0] objectAtIndex: 1] isEqual: c_ary[0]] &&
	    [[m[0] objectAtIndex: 2] isEqual: c_ary[2]])







|







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
	    [[a[1] objectAtIndex: 0] isEqual: c_ary[0]] &&
	    [[a[1] objectAtIndex: 1] isEqual: c_ary[1]] &&
	    [[a[1] objectAtIndex: 2] isEqual: c_ary[2]])

	TEST(@"-[indexOfObject:]", [a[0] indexOfObject: c_ary[1]] == 1)

	TEST(@"-[indexOfObjectIdenticalTo:]",
	    [a[1] indexOfObjectIdenticalTo: c_ary[1]] == 1)

	TEST(@"-[replaceObject:withObject:]",
	    [m[0] replaceObject: c_ary[1]
		     withObject: c_ary[0]] &&
	    [[m[0] objectAtIndex: 0] isEqual: c_ary[0]] &&
	    [[m[0] objectAtIndex: 1] isEqual: c_ary[0]] &&
	    [[m[0] objectAtIndex: 2] isEqual: c_ary[2]])