@@ -290,7 +290,17 @@ fn search_returns_matching_js_function_line_with_filetype_alias(#[case] file_typ
290
290
#[ case:: php_global_constant( String :: from( "GLOBALCONSTANT" ) , String :: from( "php" ) , 30 ) ]
291
291
#[ case:: php_global_define_single( String :: from( "GLOBALDEFINESINGLE" ) , String :: from( "php" ) , 31 ) ]
292
292
#[ case:: php_global_define_double( String :: from( "GLOBALDEFINEDOUBLE" ) , String :: from( "php" ) , 32 ) ]
293
- #[ case:: php_global_class_constant( String :: from( "MYCONSTANT" ) , String :: from( "php" ) , 36 ) ]
293
+ #[ case:: php_global_define_nospace(
294
+ String :: from( "GLOBALDEFINESINGLE_NOSPACE" ) ,
295
+ String :: from( "php" ) ,
296
+ 34
297
+ ) ]
298
+ #[ case:: php_global_define_leadspace(
299
+ String :: from( "GLOBALDEFINESINGLE_LEADSPACE" ) ,
300
+ String :: from( "php" ) ,
301
+ 35
302
+ ) ]
303
+ #[ case:: php_global_class_constant( String :: from( "MYCONSTANT" ) , String :: from( "php" ) , 38 ) ]
294
304
#[ case( String :: from( "query_db" ) , String :: from( "rs" ) , 1 ) ]
295
305
#[ case( String :: from( "public_func" ) , String :: from( "rs" ) , 6 ) ]
296
306
#[ case( String :: from( "Wrapper" ) , String :: from( "rs" ) , 4 ) ]
@@ -307,9 +317,13 @@ fn search_returns_expected_line_number_for_file_type(
307
317
common:: get_default_fixture_for_file_type_string ( file_type_string. as_str ( ) ) . unwrap ( ) ;
308
318
let args = common:: make_args ( query, Some ( file_path) , Some ( file_type_string) ) ;
309
319
let actual = common:: do_search ( args) ;
310
- assert_eq ! ( 1 , actual. len( ) ) ;
320
+ assert_eq ! ( 1 , actual. len( ) , "Did not find exactly one match" ) ;
311
321
let first_actual = actual. get ( 0 ) . expect ( "Search failed for test" ) ;
312
- assert_eq ! ( line_number, first_actual. line_number. unwrap( ) ) ;
322
+ assert_eq ! (
323
+ line_number,
324
+ first_actual. line_number. unwrap( ) ,
325
+ "Match found but it has the wrong line number"
326
+ ) ;
313
327
}
314
328
315
329
#[ rstest]
0 commit comments