Skip to content

Commit 95b7463

Browse files
committed
1 parent acff1e2 commit 95b7463

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

TestFoundation/TestNSDictionary.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,24 @@ class TestNSDictionary : XCTestCase {
134134

135135
XCTAssertFalse(dict1.isEqual(nil))
136136
XCTAssertFalse(dict1.isEqual(NSObject()))
137+
138+
let nestedDict1 = NSDictionary(dictionary: [
139+
"key.entities": [
140+
["key": 0]
141+
]
142+
])
143+
let nestedDict2 = NSDictionary(dictionary: [
144+
"key.entities": [
145+
["key": 1]
146+
]
147+
])
148+
XCTAssertFalse(nestedDict1 == nestedDict2)
149+
XCTAssertFalse(nestedDict1.isEqual(nestedDict2))
150+
XCTAssertFalse(nestedDict1.isEqual(to: [
151+
"key.entities": [
152+
["key": 1]
153+
]
154+
]))
137155
}
138156

139157
func test_copying() {

0 commit comments

Comments
 (0)