Skip to content

Commit 8c185fc

Browse files
committed
Remove removeSubrange test 5.7
1 parent 84765ce commit 8c185fc

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

test/stdlib/StringIndex.swift

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,28 +1059,3 @@ suite.test("String.replaceSubrange index validation")
10591059
}
10601060
}
10611061
}
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

Comments
 (0)