add test for visitor mad from same context

This commit is contained in:
rchaser53 2019-03-22 18:20:00 +09:00
parent 1d9104bbae
commit 85b206a32c
2 changed files with 42 additions and 0 deletions

View file

@ -34,3 +34,24 @@ this should be skipped</div>
}
.to_string();
}
fn visitor_made_from_same_context() {
let pair = (
|| {
foo!(<div>
this should be mangled</div>
);
skip_macro_mod!(<div>
this should be skipped</div>
);
},
|| {
foo!(<div>
this should be mangled</div>
);
skip_macro_mod!(<div>
this should be skipped</div>
);
},
);
}

View file

@ -34,3 +34,24 @@ this should be skipped</div>
}
.to_string();
}
fn visitor_made_from_same_context() {
let pair = (
|| {
foo!(<div>
this should be mangled</div>
);
skip_macro_mod!(<div>
this should be skipped</div>
);
},
|| {
foo!(<div>
this should be mangled</div>
);
skip_macro_mod!(<div>
this should be skipped</div>
);
},
);
}