ObjFW  Check-in [d78526559e]

Overview
Comment:Work around a stupid gcc warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d78526559ed98005e8bb0734feb0b4e018411e7001499e655f79b23d7d6f0c6d
User & Date: js on 2012-01-03 20:46:06
Other Links: manifest | tags
Context
2012-01-04
23:30
Work around objc_setFutureClass suddenly not working anymore on i386. check-in: 41fbb8c0a8 user: js tags: trunk
2012-01-03
20:46
Work around a stupid gcc warning. check-in: d78526559e user: js tags: trunk
20:44
Don't use objc_setUncaughtExceptionHandler with the old Apple runtime. check-in: 138d928621 user: js tags: trunk
Changes

Modified tests/OFJSONTests.m from [373cac5c83] to [a8d60fa0cd].

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	OFString *s = @"{\"foo\"\t:\"bar\", \"x\":/*fooo*/ [7.5\r,null//bar\n"
	    @",\"foo\",false]}";
	OFDictionary *d = [OFDictionary dictionaryWithKeysAndObjects:
	    @"foo", @"bar",
	    @"x", [OFArray arrayWithObjects:
		[OFNumber numberWithFloat: 7.5],
		[OFNull null],
		@"foo",
		[OFNumber numberWithBool: NO],
		nil],
	    nil];

	TEST(@"-[JSONValue #1]", [[s JSONValue] isEqual: d])







|







34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	OFString *s = @"{\"foo\"\t:\"bar\", \"x\":/*fooo*/ [7.5\r,null//bar\n"
	    @",\"foo\",false]}";
	OFDictionary *d = [OFDictionary dictionaryWithKeysAndObjects:
	    @"foo", @"bar",
	    @"x", [OFArray arrayWithObjects:
		[OFNumber numberWithFloat: 7.5f],
		[OFNull null],
		@"foo",
		[OFNumber numberWithBool: NO],
		nil],
	    nil];

	TEST(@"-[JSONValue #1]", [[s JSONValue] isEqual: d])