358
359
360
361
362
363
364
365
366
367
368
369
370
|
i == 32 && [parser lineNumber] == 18)
TEST(@"-[finishedParsing]", [parser finishedParsing])
TEST(@"Parsing whitespaces after the document",
R([parser parseString: @" \t\r\n "]))
EXPECT_EXCEPTION(@"Detection of junk after the document",
OFMalformedXMLException, [parser parseString: @"a"])
[pool drain];
}
@end
|
>
>
>
|
>
>
>
|
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
|
i == 32 && [parser lineNumber] == 18)
TEST(@"-[finishedParsing]", [parser finishedParsing])
TEST(@"Parsing whitespaces after the document",
R([parser parseString: @" \t\r\n "]))
TEST(@"Parsing comments after the document",
R([parser parseString: @" \t<!-- foo -->\r<!--bar-->\n "]))
EXPECT_EXCEPTION(@"Detection of junk after the document #1",
OFMalformedXMLException, [parser parseString: @"a"])
EXPECT_EXCEPTION(@"Detection of junk after the document #2",
OFMalformedXMLException, [parser parseString: @"<!["])
[pool drain];
}
@end
|