Skip to content

Commit 533587a

Browse files
committed
test case work
1 parent 01702e8 commit 533587a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,12 +1461,15 @@ mod test {
14611461
pprust::print_mod(s, &crate.module, crate.attrs);
14621462
}
14631463
1464-
//fn expand_and_resolve_and_pretty_print (crate_str : @str) -> ~str {
1464+
//fn expand_and_resolve(crate_str: @str) -> ast::crate {
14651465
//let (crate_ast,ps) = string_to_crate_and_sess(crate_str);
14661466
// the cfg argument actually does matter, here...
14671467
//let expanded_ast = expand_crate(ps,~[],crate_ast);
14681468
// std::io::println(fmt!("expanded: %?\n",expanded_ast));
1469-
//let resolved_ast = mtwt_resolve_crate(expanded_ast);
1469+
//mtwt_resolve_crate(expanded_ast)
1470+
//}
1471+
//fn expand_and_resolve_and_pretty_print (crate_str : @str) -> ~str {
1472+
//let resolved_ast = expand_and_resolve(crate_str);
14701473
//pprust::to_str(&resolved_ast,fake_print_crate,get_ident_interner())
14711474
//}
14721475

@@ -1503,4 +1506,9 @@ mod test {
15031506
pat_idents.visit_pat(pat, ());
15041507
assert_eq!(idents, @mut strs_to_idents(~["a","c","b","d"]));
15051508
}
1509+
1510+
/* #[test]
1511+
fn debugging(){
1512+
io::println(fmt!("%?",expand_and_resolve(@~"fn main () { let x : int = 13;}")))
1513+
}*/
15061514
}

0 commit comments

Comments
 (0)