247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
|
ok = true;
}
TEST(@"Detection of mutation during Fast Enumeration", ok)
[mutableDict removeObjectForKey: @""];
TEST(@"-[stringByURLEncoding]",
[[[OFDictionary dictionaryWithKeysAndObjects: @"foo", @"bar",
@"q&x", @"q=x", nil]
stringByURLEncoding] isEqual: @"q%26x=q%3Dx&foo=bar"])
#ifdef OF_HAVE_BLOCKS
{
__block size_t j = 0;
__block bool blockOk = true;
[mutableDict enumerateKeysAndObjectsUsingBlock:
|
|
|
|
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
|
ok = true;
}
TEST(@"Detection of mutation during Fast Enumeration", ok)
[mutableDict removeObjectForKey: @""];
TEST(@"-[URIQueryString]",
[[[OFDictionary dictionaryWithKeysAndObjects: @"foo", @"bar",
@"q&x", @"q=x", nil]
URIQueryString] isEqual: @"q%26x=q%3Dx&foo=bar"])
#ifdef OF_HAVE_BLOCKS
{
__block size_t j = 0;
__block bool blockOk = true;
[mutableDict enumerateKeysAndObjectsUsingBlock:
|