Overview
| Comment: | Fix OFDictionaryTests |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
4ad79a7f675808007867ca8831505d76 |
| User & Date: | js on 2016-06-05 15:50:22 |
| Other Links: | manifest | tags |
Context
|
2016-06-05
| ||
| 15:51 | Key Value Coding: Add -[setNilValueForKey:] (check-in: 7bb4cae9db user: js tags: trunk) | |
| 15:50 | Fix OFDictionaryTests (check-in: 4ad79a7f67 user: js tags: trunk) | |
| 15:11 | Move -[setValue:forKey:] to OFDictionary (check-in: f816d1ec7c user: js tags: trunk) | |
Changes
Modified tests/OFDictionaryTests.m from [c47931a3b5] to [7c197c60f6].
| ︙ | ︙ | |||
58 59 60 61 62 63 64 | TEST(@"-[valueForKey:]", [[dict valueForKey: keys[0]] isEqual: values[0]] && [[dict valueForKey: @"@count"] isEqual: [OFNumber numberWithSize: 2]]) EXPECT_EXCEPTION(@"Catching -[setValue:forKey:] on immutable " | | > | | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | TEST(@"-[valueForKey:]", [[dict valueForKey: keys[0]] isEqual: values[0]] && [[dict valueForKey: @"@count"] isEqual: [OFNumber numberWithSize: 2]]) EXPECT_EXCEPTION(@"Catching -[setValue:forKey:] on immutable " @"dictionary", OFUndefinedKeyException, [[OFDictionary dictionary] setValue: @"x" forKey: @"x"]) TEST(@"-[containsObject:]", [dict containsObject: values[0]] && ![dict containsObject: @"nonexistant"]) TEST(@"-[containsObjectIdenticalTo:]", [dict containsObjectIdenticalTo: values[0]] && |
| ︙ | ︙ |