219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
[[OFIRI IRIWithString: @"HTTP://bar/"] isEqual: IRI3])
TEST(@"-[hash:]", IRI1.hash == IRI4.hash && IRI2.hash != IRI3.hash)
EXPECT_EXCEPTION(@"Detection of invalid format",
OFInvalidFormatException, [OFIRI IRIWithString: @"http"])
mutableIRI = [OFMutableIRI IRIWithScheme: @"dummy"];
EXPECT_EXCEPTION(
@"-[setPercentEncodedScheme:] with invalid characters fails",
OFInvalidFormatException, mutableIRI.scheme = @"%20")
TEST(@"-[setHost:]",
|
>
>
>
>
|
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
[[OFIRI IRIWithString: @"HTTP://bar/"] isEqual: IRI3])
TEST(@"-[hash:]", IRI1.hash == IRI4.hash && IRI2.hash != IRI3.hash)
EXPECT_EXCEPTION(@"Detection of invalid format",
OFInvalidFormatException, [OFIRI IRIWithString: @"http"])
TEST(@"-[IRIByAddingPercentEncodingForUnicodeCharacters]",
[IRI11.IRIByAddingPercentEncodingForUnicodeCharacters
isEqual: [OFIRI IRIWithString: @"http://%C3%A4/%C3%B6?%C3%BC"]])
mutableIRI = [OFMutableIRI IRIWithScheme: @"dummy"];
EXPECT_EXCEPTION(
@"-[setPercentEncodedScheme:] with invalid characters fails",
OFInvalidFormatException, mutableIRI.scheme = @"%20")
TEST(@"-[setHost:]",
|