add fragmets to expansion

This commit is contained in:
Aleksey Kladov 2019-09-10 20:09:43 +03:00
parent 9d3c78e2ee
commit 6e5198cd6d
2 changed files with 42 additions and 36 deletions

View file

@ -657,7 +657,6 @@ fn test_expr() {
}
#[test]
#[ignore]
fn test_expr_order() {
let rules = create_rules(
r#"
@ -668,9 +667,9 @@ fn test_expr_order() {
}
"#,
);
let dump = format!("{:#?}", expand_to_items(&rules, "foo! { 1 + 1 }").syntax());
assert_eq_text!(
&format!("{:#?}", expand_to_items(&rules, "foo! { 1 + 1 }").syntax()),
dump.trim(),
r#"MACRO_ITEMS@[0; 15)
FN_DEF@[0; 15)
FN_KW@[0; 2) "fn"