add test case for macro token comparison

This commit is contained in:
John Clements 2013-07-09 15:10:16 -07:00
parent 963dab5dcb
commit 0c31c930ff

View File

@ -1647,6 +1647,10 @@ mod test {
//pprust::to_str(&resolved_ast,fake_print_crate,get_ident_interner())
//}
#[test] fn macro_tokens_should_match(){
expand_crate_str(@"macro_rules! m((a)=>(13)) fn main(){m!(a);}");
}
// renaming tests expand a crate and then check that the bindings match
// the right varrefs. The specification of the test case includes the
// text of the crate, and also an array of arrays. Each element in the