@@ -42,10 +42,10 @@ mod tests {
42
42
for path in paths ( "a.ts" ) {
43
43
let is_match = named_pattern_matcher ( & path) ;
44
44
45
- assert_eq ! ( is_match( "*.t" , "" ) , false ) ;
46
- assert_eq ! ( is_match( "*.tsx" , "" ) , false ) ;
47
- assert_eq ! ( is_match( "types:*.{ts,tsx}" , "" ) , false ) ;
48
- assert_eq ! ( is_match( "url:*" , "" ) , false ) ;
45
+ assert ! ( ! is_match( "*.t" , "" ) ) ;
46
+ assert ! ( ! is_match( "*.tsx" , "" ) ) ;
47
+ assert ! ( ! is_match( "types:*.{ts,tsx}" , "" ) ) ;
48
+ assert ! ( ! is_match( "url:*" , "" ) ) ;
49
49
}
50
50
}
51
51
@@ -54,8 +54,8 @@ mod tests {
54
54
for path in paths ( "a.ts" ) {
55
55
let is_match = named_pattern_matcher ( & path) ;
56
56
57
- assert_eq ! ( is_match( "types:*.{ts,tsx}" , "type" ) , false ) ;
58
- assert_eq ! ( is_match( "types:*.{ts,tsx}" , "typesa" ) , false ) ;
57
+ assert ! ( ! is_match( "types:*.{ts,tsx}" , "type" ) ) ;
58
+ assert ! ( ! is_match( "types:*.{ts,tsx}" , "typesa" ) ) ;
59
59
}
60
60
}
61
61
@@ -64,9 +64,9 @@ mod tests {
64
64
for path in paths ( "a.ts" ) {
65
65
let is_match = named_pattern_matcher ( & path) ;
66
66
67
- assert_eq ! ( is_match( "*.{ts,tsx}" , "" ) , true ) ;
68
- assert_eq ! ( is_match( "*.ts" , "" ) , true ) ;
69
- assert_eq ! ( is_match( "*" , "" ) , true ) ;
67
+ assert ! ( is_match( "*.{ts,tsx}" , "" ) ) ;
68
+ assert ! ( is_match( "*.ts" , "" ) ) ;
69
+ assert ! ( is_match( "*" , "" ) ) ;
70
70
}
71
71
}
72
72
@@ -75,9 +75,9 @@ mod tests {
75
75
for path in paths ( "a.ts" ) {
76
76
let is_match = named_pattern_matcher ( & path) ;
77
77
78
- assert_eq ! ( is_match( "types:*.{ts,tsx}" , "types" ) , true ) ;
79
- assert_eq ! ( is_match( "types:*.ts" , "types" ) , true ) ;
80
- assert_eq ! ( is_match( "types:*" , "types" ) , true ) ;
78
+ assert ! ( is_match( "types:*.{ts,tsx}" , "types" ) ) ;
79
+ assert ! ( is_match( "types:*.ts" , "types" ) ) ;
80
+ assert ! ( is_match( "types:*" , "types" ) ) ;
81
81
}
82
82
}
83
83
}
@@ -90,10 +90,10 @@ mod tests {
90
90
for path in paths ( "a.ts" ) {
91
91
let is_match = pattern_matcher ( & path) ;
92
92
93
- assert_eq ! ( is_match( "*.t" ) , false ) ;
94
- assert_eq ! ( is_match( "*.tsx" ) , false ) ;
95
- assert_eq ! ( is_match( "types:*.{ts,tsx}" ) , false ) ;
96
- assert_eq ! ( is_match( "url:*" ) , false ) ;
93
+ assert ! ( ! is_match( "*.t" ) ) ;
94
+ assert ! ( ! is_match( "*.tsx" ) ) ;
95
+ assert ! ( ! is_match( "types:*.{ts,tsx}" ) ) ;
96
+ assert ! ( ! is_match( "url:*" ) ) ;
97
97
}
98
98
}
99
99
@@ -102,9 +102,9 @@ mod tests {
102
102
for path in paths ( "a.ts" ) {
103
103
let is_match = pattern_matcher ( & path) ;
104
104
105
- assert_eq ! ( is_match( "*.{ts,tsx}" ) , true ) ;
106
- assert_eq ! ( is_match( "*.ts" ) , true ) ;
107
- assert_eq ! ( is_match( "*" ) , true ) ;
105
+ assert ! ( is_match( "*.{ts,tsx}" ) ) ;
106
+ assert ! ( is_match( "*.ts" ) ) ;
107
+ assert ! ( is_match( "*" ) ) ;
108
108
}
109
109
}
110
110
}
0 commit comments