Fix mismatching Kleene operators
This commit is contained in:
parent
848e0a23f3
commit
dd702cc653
@ -151,7 +151,7 @@ macro_rules! assert_none {
|
|||||||
stringify!($what), b);
|
stringify!($what), b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)*
|
)+
|
||||||
}};
|
}};
|
||||||
($what:ident, $($str:tt),+,) => (assert_none!($what,$($str),+))
|
($what:ident, $($str:tt),+,) => (assert_none!($what,$($str),+))
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ use std::str::pattern::*;
|
|||||||
macro_rules! search_asserts {
|
macro_rules! search_asserts {
|
||||||
($haystack:expr, $needle:expr, $testname:expr, [$($func:ident),*], $result:expr) => {
|
($haystack:expr, $needle:expr, $testname:expr, [$($func:ident),*], $result:expr) => {
|
||||||
let mut searcher = $needle.into_searcher($haystack);
|
let mut searcher = $needle.into_searcher($haystack);
|
||||||
let arr = [$( Step::from(searcher.$func()) ),+];
|
let arr = [$( Step::from(searcher.$func()) ),*];
|
||||||
assert_eq!(&arr[..], &$result, $testname);
|
assert_eq!(&arr[..], &$result, $testname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user