mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Removed some warnings (#12753)
This commit is contained in:
@@ -228,7 +228,7 @@ func checkCharacterComparison(
|
||||
}
|
||||
|
||||
for test in comparisonTests {
|
||||
if test.lhs.characters.count == 1 && test.rhs.characters.count == 1 {
|
||||
if test.lhs.count == 1 && test.rhs.count == 1 {
|
||||
StringTests.test("Character.{Equatable,Hashable,Comparable}: line \(test.loc.line)")
|
||||
.xfail(test.xfail)
|
||||
.code {
|
||||
@@ -262,11 +262,11 @@ func checkHasPrefixHasSuffix(
|
||||
// To determine the expected results, compare grapheme clusters,
|
||||
// scalar-to-scalar, of the NFD form of the strings.
|
||||
let lhsNFDGraphemeClusters =
|
||||
lhs.decomposedStringWithCanonicalMapping.characters.map {
|
||||
lhs.decomposedStringWithCanonicalMapping.map {
|
||||
Array(String($0).unicodeScalars)
|
||||
}
|
||||
let rhsNFDGraphemeClusters =
|
||||
rhs.decomposedStringWithCanonicalMapping.characters.map {
|
||||
rhs.decomposedStringWithCanonicalMapping.map {
|
||||
Array(String($0).unicodeScalars)
|
||||
}
|
||||
let expectHasPrefix = lhsNFDGraphemeClusters.starts(
|
||||
|
||||
Reference in New Issue
Block a user