Skip to content

Commit ee88950

Browse files
committed
Simple test for regression
1 parent 598eccb commit ee88950

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

TestFoundation/TestNSDictionary.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class TestNSDictionary : XCTestCase {
3232
("test_mutableCopying", test_mutableCopying),
3333
("test_writeToFile", test_writeToFile),
3434
("test_initWithContentsOfFile", test_initWithContentsOfFile),
35+
("test_settingWithStringKey", test_settingWithStringKey),
3536
]
3637
}
3738

@@ -222,6 +223,12 @@ class TestNSDictionary : XCTestCase {
222223
}
223224
}
224225

226+
func test_settingWithStringKey() {
227+
let dict = NSDictionary()
228+
// has crashed in the past
229+
dict["stringKey"] = "value"
230+
}
231+
225232
private func createTestFile(_ path: String, _contents: Data) -> String? {
226233
let tempDir = NSTemporaryDirectory() + "TestFoundation_Playground_" + NSUUID().uuidString + "/"
227234
do {

0 commit comments

Comments
 (0)