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 84765ce commit 8c185fcCopy full SHA for 8c185fc
test/stdlib/StringIndex.swift
@@ -1059,28 +1059,3 @@ suite.test("String.replaceSubrange index validation")
1059
}
1060
1061
1062
-
1063
-suite.test("Substring.removeSubrange entire range") {
1064
- guard #available(SwiftStdlib 5.7, *) else {
1065
- // This is a regression found in 5.7+
1066
- return
1067
- }
1068
1069
- var a: Substring = "abcdef"
1070
- let aStart = a.startIndex
1071
- let aEnd = a.endIndex
1072
1073
- a.removeSubrange(aStart ..< aEnd)
1074
1075
- expectTrue(a.isEmpty)
1076
1077
-#if _runtime(_ObjC)
1078
- var b: Substring = ("å∫ç∂éƒ" as NSString) as Substring
1079
- let bStart = b.startIndex
1080
- let bEnd = b.endIndex
1081
1082
- b.removeSubrange(bStart ..< bEnd)
1083
1084
- expectTrue(b.isEmpty)
1085
-#endif
1086
-}
0 commit comments