File tree 2 files changed +1
-11
lines changed
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ pub fn assert_instr(
131
131
132
132
:: stdsimd_test:: assert( #shim_name as usize ,
133
133
stringify!( #shim_name) ,
134
- stringify! ( #instr) ) ;
134
+ #instr) ;
135
135
}
136
136
} . into ( ) ;
137
137
// why? necessary now to get tests to work?
Original file line number Diff line number Diff line change @@ -371,16 +371,6 @@ fn normalize(symbol: &str) -> String {
371
371
/// This asserts that the function at `fnptr` contains the instruction
372
372
/// `expected` provided.
373
373
pub fn assert ( fnptr : usize , fnname : & str , expected : & str ) {
374
- // The string in expected is surrounded by '"', strip these:
375
- let expected = {
376
- assert ! (
377
- expected. len( ) > 2
378
- && expected. starts_with( '"' )
379
- && expected. ends_with( '"' )
380
- ) ;
381
- expected. get ( 1 ..expected. len ( ) - 1 )
382
- . expect ( "expected must be a '\" ' delimited string, e.g., \" nop\" " )
383
- } ;
384
374
let mut fnname = fnname. to_string ( ) ;
385
375
let functions = get_functions ( fnptr, & mut fnname) ;
386
376
assert_eq ! ( functions. len( ) , 1 ) ;
You can’t perform that action at this time.
0 commit comments