mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 05:33:41 +00:00
add test case for macro token comparison
This commit is contained in:
parent
963dab5dcb
commit
0c31c930ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user