We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7775180 commit 2dae59dCopy full SHA for 2dae59d
crates/stdsimd-test/src/lib.rs
@@ -362,6 +362,12 @@ fn normalize(symbol: &str) -> String {
362
/// This asserts that the function at `fnptr` contains the instruction
363
/// `expected` provided.
364
pub fn assert(fnptr: usize, fnname: &str, expected: &str) {
365
+ // The string in expected is surrounded by '"', strip these:
366
+ let expected = {
367
+ assert!(expected.len() > 2 && expected.starts_with('"')
368
+ && expected.ends_with('"'));
369
+ expected.get(1..expected.len()-1).unwrap()
370
+ };
371
let mut fnname = fnname.to_string();
372
let functions = get_functions(fnptr, &mut fnname);
373
assert_eq!(functions.len(), 1);
0 commit comments