rust/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs

17 lines
350 B
Rust
Raw Normal View History

2018-09-08 02:13:32 -05:00
macro parse_use_trees($($s:expr),* $(,)*) {
vec![
$(parse_use_tree($s),)*
]
}
#[test]
fn test_use_tree_merge() {
macro test_merge([$($input:expr),* $(,)*], [$($output:expr),* $(,)*]) {
assert_eq!(
merge_use_trees(parse_use_trees!($($input,)*)),
parse_use_trees!($($output,)*),
);
}
}