@@ -31,15 +31,15 @@ fn fluent_value_matches() {
3131 let number_val_copy = FluentValue :: from ( -23.5 ) ;
3232 let number_val2 = FluentValue :: from ( 23.5 ) ;
3333
34- assert_eq ! ( string_val. matches( & string_val_copy, & scope) , true ) ;
35- assert_eq ! ( string_val. matches( & string_val2, & scope) , false ) ;
34+ assert ! ( string_val. matches( & string_val_copy, & scope) ) ;
35+ assert ! ( ! string_val. matches( & string_val2, & scope) ) ;
3636
37- assert_eq ! ( number_val. matches( & number_val_copy, & scope) , true ) ;
38- assert_eq ! ( number_val. matches( & number_val2, & scope) , false ) ;
37+ assert ! ( number_val. matches( & number_val_copy, & scope) ) ;
38+ assert ! ( ! number_val. matches( & number_val2, & scope) ) ;
3939
40- assert_eq ! ( string_val2. matches( & number_val2, & scope) , false ) ;
40+ assert ! ( ! string_val2. matches( & number_val2, & scope) ) ;
4141
42- assert_eq ! ( string_val2. matches( & number_val2, & scope) , false ) ;
42+ assert ! ( ! string_val2. matches( & number_val2, & scope) ) ;
4343
4444 let string_cat_zero = FluentValue :: from ( "zero" ) ;
4545 let string_cat_one = FluentValue :: from ( "one" ) ;
@@ -55,15 +55,15 @@ fn fluent_value_matches() {
5555 let number_cat_many = 11 . into ( ) ;
5656 let number_cat_other = 101 . into ( ) ;
5757
58- assert_eq ! ( string_cat_zero. matches( & number_cat_zero, & scope) , true ) ;
59- assert_eq ! ( string_cat_one. matches( & number_cat_one, & scope) , true ) ;
60- assert_eq ! ( string_cat_two. matches( & number_cat_two, & scope) , true ) ;
61- assert_eq ! ( string_cat_few. matches( & number_cat_few, & scope) , true ) ;
62- assert_eq ! ( string_cat_many. matches( & number_cat_many, & scope) , true ) ;
63- assert_eq ! ( string_cat_other. matches( & number_cat_other, & scope) , true ) ;
64- assert_eq ! ( string_cat_other. matches( & number_cat_one, & scope) , false ) ;
58+ assert ! ( string_cat_zero. matches( & number_cat_zero, & scope) ) ;
59+ assert ! ( string_cat_one. matches( & number_cat_one, & scope) ) ;
60+ assert ! ( string_cat_two. matches( & number_cat_two, & scope) ) ;
61+ assert ! ( string_cat_few. matches( & number_cat_few, & scope) ) ;
62+ assert ! ( string_cat_many. matches( & number_cat_many, & scope) ) ;
63+ assert ! ( string_cat_other. matches( & number_cat_other, & scope) ) ;
64+ assert ! ( ! string_cat_other. matches( & number_cat_one, & scope) ) ;
6565
66- assert_eq ! ( string_val2. matches( & number_cat_one, & scope) , false ) ;
66+ assert ! ( ! string_val2. matches( & number_cat_one, & scope) ) ;
6767}
6868
6969#[ test]
@@ -120,7 +120,7 @@ fn fluent_number_style() {
120120 assert_eq ! ( fno. style, FluentNumberStyle :: Currency ) ;
121121 assert_eq ! ( fno. currency, Some ( "EUR" . to_string( ) ) ) ;
122122 assert_eq ! ( fno. currency_display, FluentNumberCurrencyDisplayStyle :: Code ) ;
123- assert_eq ! ( fno. use_grouping, false ) ;
123+ assert ! ( ! fno. use_grouping) ;
124124
125125 let num = FluentNumber :: new ( 0.2 , FluentNumberOptions :: default ( ) ) ;
126126 assert_eq ! ( num. as_string( ) , "0.2" ) ;
0 commit comments