We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 598eccb commit ee88950Copy full SHA for ee88950
TestFoundation/TestNSDictionary.swift
@@ -32,6 +32,7 @@ class TestNSDictionary : XCTestCase {
32
("test_mutableCopying", test_mutableCopying),
33
("test_writeToFile", test_writeToFile),
34
("test_initWithContentsOfFile", test_initWithContentsOfFile),
35
+ ("test_settingWithStringKey", test_settingWithStringKey),
36
]
37
}
38
@@ -222,6 +223,12 @@ class TestNSDictionary : XCTestCase {
222
223
224
225
226
+ func test_settingWithStringKey() {
227
+ let dict = NSDictionary()
228
+ // has crashed in the past
229
+ dict["stringKey"] = "value"
230
+ }
231
+
232
private func createTestFile(_ path: String, _contents: Data) -> String? {
233
let tempDir = NSTemporaryDirectory() + "TestFoundation_Playground_" + NSUUID().uuidString + "/"
234
do {
0 commit comments