File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
library/std/src/sys_common/wtf8 Expand file tree Collapse file tree 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() {
604604fn 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() {
619617fn 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 " ) ;
You can’t perform that action at this time.
0 commit comments