Skip to content

Commit 6fea734

Browse files
committed
add test for getting back a nil in ordered dict
1 parent b7dd0e8 commit 6fea734

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/swift-sdk-swift-tests/OrderedDictionaryTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@ class OrderedDictionaryTests: XCTestCase {
3939

4040
XCTAssertEqual(dict["key"], "value")
4141
}
42+
43+
func testNonExistentKey() {
44+
let dict = OrderedDictionary<String, String>()
45+
46+
XCTAssertNil(dict["key"])
47+
}
4248
}

0 commit comments

Comments
 (0)