From 0c31c930ffc6a5c3b2cbaf45f7d5596840a8926d Mon Sep 17 00:00:00 2001 From: John Clements Date: Tue, 9 Jul 2013 15:10:16 -0700 Subject: [PATCH] add test case for macro token comparison --- src/libsyntax/ext/expand.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 63dd8231aa07..d072f2a7812b 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -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