Differences From Artifact [c3a18a2f55]:
- File tests/OFDictionaryTests.m — part of check-in [eeec8af349] at 2019-06-19 00:36:35 on branch trunk — OFDictionary: Add default for fast enumeration (user: js, size: 10099) [annotate] [blame] [check-ins using]
To Artifact [71910a92f2]:
- File
tests/OFDictionaryTests.m
— part of check-in
[7214a2c7af]
at
2019-06-19 00:45:05
on branch trunk
— OFEnumerator: Remove -[reset]
It's not very useful and is a problem for the Foundation bridge, as
NSEnumerator does not have it. (user: js, size: 10075) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
218 219 220 221 222 223 224 | [[keyEnumerator nextObject] isEqual: keys[0]] && [[objectEnumerator nextObject] isEqual: values[0]] && [[keyEnumerator nextObject] isEqual: keys[1]] && [[objectEnumerator nextObject] isEqual: values[1]] && [keyEnumerator nextObject] == nil && [objectEnumerator nextObject] == nil) | < | 218 219 220 221 222 223 224 225 226 227 228 229 230 231 | [[keyEnumerator nextObject] isEqual: keys[0]] && [[objectEnumerator nextObject] isEqual: values[0]] && [[keyEnumerator nextObject] isEqual: keys[1]] && [[objectEnumerator nextObject] isEqual: values[1]] && [keyEnumerator nextObject] == nil && [objectEnumerator nextObject] == nil) [mutDict removeObjectForKey: keys[0]]; EXPECT_EXCEPTION(@"Detection of mutation during enumeration", OFEnumerationMutationException, [keyEnumerator nextObject]); [mutDict setObject: values[0] forKey: keys[0]]; |
︙ | ︙ |