@@ -140,27 +140,27 @@ mod tests {
140
140
141
141
#[ test]
142
142
fn str_works ( ) {
143
- assert_eq ! ( run_php( "str.php" ) , "str works" ) ;
143
+ assert ! ( run_php( "str.php" ) == "str works" ) ;
144
144
}
145
145
146
146
#[ test]
147
147
fn string_works ( ) {
148
- assert_eq ! ( run_php( "string.php" ) , "string works" ) ;
148
+ assert ! ( run_php( "string.php" ) == "string works" ) ;
149
149
}
150
150
151
151
#[ test]
152
152
fn bool_works ( ) {
153
- assert_eq ! ( run_php( "bool.php" ) , "true false" ) ;
153
+ assert ! ( run_php( "bool.php" ) == "true false" ) ;
154
154
}
155
155
156
156
#[ test]
157
157
fn number_signed_works ( ) {
158
- assert_eq ! ( run_php( "number_signed.php" ) , "-12 0 12" ) ;
158
+ assert ! ( run_php( "number_signed.php" ) == "-12 0 12" ) ;
159
159
}
160
160
161
161
#[ test]
162
162
fn number_unsigned_works ( ) {
163
- assert_eq ! ( run_php( "number_unsigned.php" ) , "0 12 invalid" ) ;
163
+ assert ! ( run_php( "number_unsigned.php" ) == "0 12 invalid" ) ;
164
164
}
165
165
166
166
#[ test]
@@ -170,57 +170,57 @@ mod tests {
170
170
. split_whitespace ( )
171
171
. map ( |a| a. parse :: < f32 > ( ) . unwrap ( ) )
172
172
. collect ( ) ;
173
- assert_eq ! ( floats, vec![ -1.2 , 0.0 , 1.2 ] ) ;
173
+ assert ! ( floats == vec![ -1.2 , 0.0 , 1.2 ] ) ;
174
174
}
175
175
176
176
#[ test]
177
177
fn array_works ( ) {
178
- assert_eq ! ( run_php( "array.php" ) , "a b c" ) ;
178
+ assert ! ( run_php( "array.php" ) == "a b c" ) ;
179
179
}
180
180
181
181
#[ test]
182
182
fn array_assoc_works ( ) {
183
183
let output = run_php ( "array_assoc.php" ) ;
184
- assert_eq ! ( output. contains( "first=1" ) , true ) ;
185
- assert_eq ! ( output. contains( "second=2" ) , true ) ;
186
- assert_eq ! ( output. contains( "third=3" ) , true ) ;
184
+ assert ! ( output. contains( "first=1" ) ) ;
185
+ assert ! ( output. contains( "second=2" ) ) ;
186
+ assert ! ( output. contains( "third=3" ) ) ;
187
187
}
188
188
189
189
#[ test]
190
190
fn binary_works ( ) {
191
- assert_eq ! ( run_php( "binary.php" ) , "1 2 3 4 5" ) ;
191
+ assert ! ( run_php( "binary.php" ) = "1 2 3 4 5" ) ;
192
192
}
193
193
194
194
#[ test]
195
195
fn nullable_works ( ) {
196
- assert_eq ! ( run_php( "nullable.php" ) , "null not_null" ) ;
196
+ assert ! ( run_php( "nullable.php" ) == "null not_null" ) ;
197
197
}
198
198
199
199
#[ test]
200
200
fn object_works ( ) {
201
201
let output = run_php ( "object.php" ) ;
202
- assert_eq ! ( output. contains( "first=1" ) , true ) ;
203
- assert_eq ! ( output. contains( "second=2" ) , true ) ;
204
- assert_eq ! ( output. contains( "third=3" ) , true ) ;
202
+ assert ! ( output. contains( "first=1" ) ) ;
203
+ assert ! ( output. contains( "second=2" ) ) ;
204
+ assert ! ( output. contains( "third=3" ) ) ;
205
205
}
206
206
207
207
#[ test]
208
208
fn closure_works ( ) {
209
- assert_eq ! ( run_php( "closure.php" ) , "closure works" ) ;
209
+ assert ! ( run_php( "closure.php" ) == "closure works" ) ;
210
210
}
211
211
212
212
#[ test]
213
213
fn closure_once_works ( ) {
214
- assert_eq ! ( run_php( "closure_once.php" ) , "closure works once" ) ;
214
+ assert ! ( run_php( "closure_once.php" ) == "closure works once" ) ;
215
215
}
216
216
217
217
#[ test]
218
218
fn callable_works ( ) {
219
- assert_eq ! ( run_php( "callable.php" ) , "callable works" ) ;
219
+ assert ! ( run_php( "callable.php" ) == "callable works" ) ;
220
220
}
221
221
222
222
#[ test]
223
223
fn class_works ( ) {
224
- assert_eq ! ( run_php( "class.php" ) , "class works" ) ;
224
+ assert ! ( run_php( "class.php" ) == "class works" ) ;
225
225
}
226
226
}
0 commit comments