File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,18 @@ fn from_bool(is_normalized: bool) -> IsNormalized {
19
19
20
20
fuzz_target ! ( |input: String | {
21
21
// The full predicates imply the quick predicates.
22
- assert!( is_nfc_quick( input. chars( ) ) != from_bool( !is_nfc( & input) ) ) ;
23
- assert!( is_nfd_quick( input. chars( ) ) != from_bool( !is_nfd( & input) ) ) ;
24
- assert!( is_nfkc_quick( input. chars( ) ) != from_bool( !is_nfkc( & input) ) ) ;
25
- assert!( is_nfkd_quick( input. chars( ) ) != from_bool( !is_nfkd( & input) ) ) ;
26
- assert!( is_nfc_stream_safe_quick( input. chars( ) ) != from_bool( !is_nfc_stream_safe( & input) ) ) ;
27
- assert!( is_nfd_stream_safe_quick( input. chars( ) ) != from_bool( !is_nfd_stream_safe( & input) ) ) ;
22
+ assert_ne!( is_nfc_quick( input. chars( ) ) , from_bool( !is_nfc( & input) ) ) ;
23
+ assert_ne!( is_nfd_quick( input. chars( ) ) , from_bool( !is_nfd( & input) ) ) ;
24
+ assert_ne!( is_nfkc_quick( input. chars( ) ) , from_bool( !is_nfkc( & input) ) ) ;
25
+ assert_ne!( is_nfkd_quick( input. chars( ) ) , from_bool( !is_nfkd( & input) ) ) ;
26
+ assert_ne!(
27
+ is_nfc_stream_safe_quick( input. chars( ) ) ,
28
+ from_bool( !is_nfc_stream_safe( & input) )
29
+ ) ;
30
+ assert_ne!(
31
+ is_nfd_stream_safe_quick( input. chars( ) ) ,
32
+ from_bool( !is_nfd_stream_safe( & input) )
33
+ ) ;
28
34
29
35
// Check NFC, NFD, NFKC, and NFKD normalization.
30
36
let nfc = input. chars( ) . nfc( ) . collect:: <String >( ) ;
You can’t perform that action at this time.
0 commit comments