Skip to content

Commit 516a67a

Browse files
committed
Remove is_known_utf8 checks from more tests where it's no longer set.
1 parent a7d57c6 commit 516a67a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

library/std/src/sys_common/wtf8/tests.rs

-4
Original file line numberDiff line numberDiff line change
@@ -604,11 +604,9 @@ fn wtf8_clone_into() {
604604
fn wtf8_to_ascii_lowercase() {
605605
let lowercase = Wtf8::from_str("").to_ascii_lowercase();
606606
assert_eq!(lowercase.bytes, b"");
607-
assert!(lowercase.is_known_utf8);
608607

609608
let lowercase = Wtf8::from_str("GrEeN gRaPeS! 🍇").to_ascii_lowercase();
610609
assert_eq!(lowercase.bytes, b"green grapes! \xf0\x9f\x8d\x87");
611-
assert!(lowercase.is_known_utf8);
612610

613611
let lowercase = unsafe { Wtf8::from_bytes_unchecked(b"\xED\xA0\x80").to_ascii_lowercase() };
614612
assert_eq!(lowercase.bytes, b"\xED\xA0\x80");
@@ -619,11 +617,9 @@ fn wtf8_to_ascii_lowercase() {
619617
fn wtf8_to_ascii_uppercase() {
620618
let uppercase = Wtf8::from_str("").to_ascii_uppercase();
621619
assert_eq!(uppercase.bytes, b"");
622-
assert!(uppercase.is_known_utf8);
623620

624621
let uppercase = Wtf8::from_str("GrEeN gRaPeS! 🍇").to_ascii_uppercase();
625622
assert_eq!(uppercase.bytes, b"GREEN GRAPES! \xf0\x9f\x8d\x87");
626-
assert!(uppercase.is_known_utf8);
627623

628624
let uppercase = unsafe { Wtf8::from_bytes_unchecked(b"\xED\xA0\x80").to_ascii_uppercase() };
629625
assert_eq!(uppercase.bytes, b"\xED\xA0\x80");

0 commit comments

Comments
 (0)