Differences From Artifact [e9e9d6bd08]:
- File new_tests/OFConcreteMutableSetTests.m — part of check-in [a7780ddefc] at 2024-02-12 21:31:44 on branch objfwtest — Migrate OFSetTests to ObjFWTest (user: js, size: 1550) [annotate] [blame] [check-ins using]
To Artifact [b0e6f39f4d]:
- File new_tests/OFConcreteMutableSetTests.m — part of check-in [6ae7f7cdbf] at 2024-02-12 22:35:47 on branch objfwtest — Migrate OFSystemInfoTests to ObjFWTest (user: js, size: 1552) [annotate] [blame] [check-ins using]
- File tests/OFConcreteMutableSetTests.m — part of check-in [7a84580fb6] at 2024-02-18 19:29:26 on branch objfwtest — Rename new tests (user: js, size: 1552) [annotate] [blame] [check-ins using]
︙ | |||
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | + + | OTAssertThrowsSpecific([enumerator nextObject], OFEnumerationMutationException); } - (void)testDetectMutationDuringFastEnumeration { bool detected = false; @try { for (OFString *object in _mutableSet) [_mutableSet removeObject: object]; } @catch (OFEnumerationMutationException *e) { detected = true; } OTAssertTrue(detected); } #ifdef OF_HAVE_BLOCKS - (void)testDetectMutationDuringEnumerateObjectsUsingBlock { OTAssertThrowsSpecific( |
︙ |