Skip to content

Commit 902443e

Browse files
[stdlib] Fix _isValidUTF8 tests
1 parent e02d7e7 commit 902443e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation-test/stdlib/Unicode.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ UTF8Decoder.test("Internal/_isValidUTF8") {
797797
data |= UInt32(cp) << (i*8)
798798
i += 1
799799
}
800-
expectEqual(FastUTF8._isValidUTF8(data), true, "data=\(asHex(data))")
800+
expectEqual(UTF8._isValidUTF8(data), true, "data=\(asHex(data))")
801801
}
802802

803803
for i in 0..<0xd800 { ensureValid(UnicodeScalar(i)) }
@@ -809,7 +809,7 @@ UTF8Decoder.test("Internal/_isValidUTF8") {
809809
for cu0 in head {
810810
for rest in tail {
811811
let data = rest << 8 | cu0
812-
if FastUTF8._isValidUTF8(data) { n += 1 }
812+
if UTF8._isValidUTF8(data) { n += 1 }
813813
}
814814
}
815815
}

0 commit comments

Comments
 (0)