mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Use Swift-native Character iteration for hasPrefix/Suffix (#14390)
* Use Swift-native Character iteration for hasPrefix/Suffix * Remove old tests for removed C shims
This commit is contained in:
@@ -272,22 +272,11 @@ StringTests.test("LosslessStringConvertible") {
|
||||
let substringTests = tests.map {
|
||||
(test: ComparisonTest) -> ComparisonTest in
|
||||
switch (test.expectedUnicodeCollation, test.lhs, test.rhs) {
|
||||
case (.eq, "\u{0}", "\u{0}"):
|
||||
return test.replacingPredicate(.objCRuntime(
|
||||
"https://bugs.swift.org/browse/SR-332"))
|
||||
|
||||
case (.gt, "\r\n", "\n"):
|
||||
return test.replacingPredicate(.objCRuntime(
|
||||
"blocked on rdar://problem/19036555"))
|
||||
|
||||
case (.eq, "\u{0301}", "\u{0341}"):
|
||||
return test.replacingPredicate(.objCRuntime(
|
||||
"https://bugs.swift.org/browse/SR-243"))
|
||||
|
||||
case (.lt, "\u{1F1E7}", "\u{1F1E7}\u{1F1E7}"):
|
||||
return test.replacingPredicate(.objCRuntime(
|
||||
"https://bugs.swift.org/browse/SR-367"))
|
||||
|
||||
default:
|
||||
return test
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user