aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs
blob: 2a70ee83a481addf3bd228b1d875a10faf897508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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,)*),
        );
    }
}