Differences From Artifact [9df1f8a4e7]:
- File tests/OFDictionaryTests.m — part of check-in [07e630588d] at 2015-06-28 16:39:34 on branch trunk — tests: Use __VA_ARGS__ for TEST() and clean up (user: js, size: 6882) [annotate] [blame] [check-ins using]
To Artifact [3cc771ecbe]:
- File
tests/OFDictionaryTests.m
— part of check-in
[be8db49635]
at
2015-11-29 14:26:44
on branch trunk
— Remove defines we no longer need
Now that we require GCC >= 4.6, those features are always available. (user: js, size: 6843) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
90 91 92 93 94 95 96 | EXPECT_EXCEPTION(@"Detection of mutation during enumeration", OFEnumerationMutationException, [key_enum nextObject]); [dict setObject: values[0] forKey: keys[0]]; | < | 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | EXPECT_EXCEPTION(@"Detection of mutation during enumeration", OFEnumerationMutationException, [key_enum nextObject]); [dict setObject: values[0] forKey: keys[0]]; size_t i = 0; bool ok = true; for (OFString *key in dict) { if (i > 1 || ![key isEqual: keys[i]]) { ok = false; break; |
︙ | ︙ | |||
122 123 124 125 126 127 128 | } @catch (OFEnumerationMutationException *e) { ok = true; } TEST(@"Detection of mutation during Fast Enumeration", ok) [dict removeObjectForKey: @""]; | < | 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | } @catch (OFEnumerationMutationException *e) { ok = true; } TEST(@"Detection of mutation during Fast Enumeration", ok) [dict removeObjectForKey: @""]; #ifdef OF_HAVE_BLOCKS { __block size_t i = 0; __block bool ok = true; [dict enumerateKeysAndObjectsUsingBlock: |
︙ | ︙ |