@@ -31,15 +31,15 @@ fn fluent_value_matches() {
31
31
let number_val_copy = FluentValue :: from ( -23.5 ) ;
32
32
let number_val2 = FluentValue :: from ( 23.5 ) ;
33
33
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) ) ;
36
36
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) ) ;
39
39
40
- assert_eq ! ( string_val2. matches( & number_val2, & scope) , false ) ;
40
+ assert ! ( ! string_val2. matches( & number_val2, & scope) ) ;
41
41
42
- assert_eq ! ( string_val2. matches( & number_val2, & scope) , false ) ;
42
+ assert ! ( ! string_val2. matches( & number_val2, & scope) ) ;
43
43
44
44
let string_cat_zero = FluentValue :: from ( "zero" ) ;
45
45
let string_cat_one = FluentValue :: from ( "one" ) ;
@@ -55,15 +55,15 @@ fn fluent_value_matches() {
55
55
let number_cat_many = 11 . into ( ) ;
56
56
let number_cat_other = 101 . into ( ) ;
57
57
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) ) ;
65
65
66
- assert_eq ! ( string_val2. matches( & number_cat_one, & scope) , false ) ;
66
+ assert ! ( ! string_val2. matches( & number_cat_one, & scope) ) ;
67
67
}
68
68
69
69
#[ test]
@@ -120,7 +120,7 @@ fn fluent_number_style() {
120
120
assert_eq ! ( fno. style, FluentNumberStyle :: Currency ) ;
121
121
assert_eq ! ( fno. currency, Some ( "EUR" . to_string( ) ) ) ;
122
122
assert_eq ! ( fno. currency_display, FluentNumberCurrencyDisplayStyle :: Code ) ;
123
- assert_eq ! ( fno. use_grouping, false ) ;
123
+ assert ! ( ! fno. use_grouping) ;
124
124
125
125
let num = FluentNumber :: new ( 0.2 , FluentNumberOptions :: default ( ) ) ;
126
126
assert_eq ! ( num. as_string( ) , "0.2" ) ;
0 commit comments