File tree 1 file changed +0
-4
lines changed
library/std/src/sys_common/wtf8
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -604,11 +604,9 @@ fn wtf8_clone_into() {
604
604
fn wtf8_to_ascii_lowercase ( ) {
605
605
let lowercase = Wtf8 :: from_str ( "" ) . to_ascii_lowercase ( ) ;
606
606
assert_eq ! ( lowercase. bytes, b"" ) ;
607
- assert ! ( lowercase. is_known_utf8) ;
608
607
609
608
let lowercase = Wtf8 :: from_str ( "GrEeN gRaPeS! 🍇" ) . to_ascii_lowercase ( ) ;
610
609
assert_eq ! ( lowercase. bytes, b"green grapes! \xf0 \x9f \x8d \x87 " ) ;
611
- assert ! ( lowercase. is_known_utf8) ;
612
610
613
611
let lowercase = unsafe { Wtf8 :: from_bytes_unchecked ( b"\xED \xA0 \x80 " ) . to_ascii_lowercase ( ) } ;
614
612
assert_eq ! ( lowercase. bytes, b"\xED \xA0 \x80 " ) ;
@@ -619,11 +617,9 @@ fn wtf8_to_ascii_lowercase() {
619
617
fn wtf8_to_ascii_uppercase ( ) {
620
618
let uppercase = Wtf8 :: from_str ( "" ) . to_ascii_uppercase ( ) ;
621
619
assert_eq ! ( uppercase. bytes, b"" ) ;
622
- assert ! ( uppercase. is_known_utf8) ;
623
620
624
621
let uppercase = Wtf8 :: from_str ( "GrEeN gRaPeS! 🍇" ) . to_ascii_uppercase ( ) ;
625
622
assert_eq ! ( uppercase. bytes, b"GREEN GRAPES! \xf0 \x9f \x8d \x87 " ) ;
626
- assert ! ( uppercase. is_known_utf8) ;
627
623
628
624
let uppercase = unsafe { Wtf8 :: from_bytes_unchecked ( b"\xED \xA0 \x80 " ) . to_ascii_uppercase ( ) } ;
629
625
assert_eq ! ( uppercase. bytes, b"\xED \xA0 \x80 " ) ;
You can’t perform that action at this time.
0 commit comments