Skip to content

Commit e8467d6

Browse files
committed
Added test case from SR-3215
1 parent f8cb141 commit e8467d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

TestFoundation/TestCharacterSet.swift

+5-2
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,11 @@ class TestCharacterSet : XCTestCase {
369369

370370
func test_SR5971() {
371371
let problematicString = "\u{10000}"
372-
let charset = CharacterSet(charactersIn:problematicString) // this should not crash
373-
XCTAssertTrue(charset.contains("\u{10000}"))
372+
let charset1 = CharacterSet(charactersIn:problematicString) // this should not crash
373+
XCTAssertTrue(charset1.contains("\u{10000}"))
374+
// Case from SR-3215
375+
let charset2 = CharacterSet(charactersIn: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789&+")
376+
XCTAssertTrue(charset2.contains("+"))
374377
}
375378

376379
}

0 commit comments

Comments
 (0)