@@ -326,19 +326,30 @@ mod test {
326326 @~"fn foo ( x : int) { x; } ",
327327 ~[ ] ,
328328 new_parse_sess ( None ) ) ;
329- assert_eq ! ( to_json_str( @tts) ,
330- ~"[ [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" fn \" , false ] ] ] ] , \
331- [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" foo\" , false ] ] ] ] , \
332- [ \" tt_delim\" , [ [ [ \" tt_tok\" , [ null, [ \" LPAREN \" , [ ] ] ] ] , \
333- [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" x\" , false ] ] ] ] , \
334- [ \" tt_tok\" , [ null, [ \" COLON \" , [ ] ] ] ] , \
335- [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" int\" , false ] ] ] ] , \
336- [ \" tt_tok\" , [ null, [ \" RPAREN \" , [ ] ] ] ] ] ] ] , \
337- [ \" tt_delim\" , [ [ [ \" tt_tok\" , [ null, [ \" LBRACE \" , [ ] ] ] ] , \
338- [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" x\" , false ] ] ] ] , \
339- [ \" tt_tok\" , [ null, [ \" SEMI \" , [ ] ] ] ] , \
340- [ \" tt_tok\" , [ null, [ \" RBRACE \" , [ ] ] ] ] ] ] ] ] "
341- );
329+ assert_eq ! (
330+ to_json_str( @tts) ,
331+ ~"[ \
332+ [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" fn \" , false ] ] ] ] , \
333+ [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" foo\" , false ] ] ] ] , \
334+ [ \" tt_delim\" , [ \
335+ [ \
336+ [ \" tt_tok\" , [ null, [ \" LPAREN \" , [ ] ] ] ] , \
337+ [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" x\" , false ] ] ] ] , \
338+ [ \" tt_tok\" , [ null, [ \" COLON \" , [ ] ] ] ] , \
339+ [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" int\" , false ] ] ] ] , \
340+ [ \" tt_tok\" , [ null, [ \" RPAREN \" , [ ] ] ] ] \
341+ ] \
342+ ] ] , \
343+ [ \" tt_delim\" , [ \
344+ [ \
345+ [ \" tt_tok\" , [ null, [ \" LBRACE \" , [ ] ] ] ] , \
346+ [ \" tt_tok\" , [ null, [ \" IDENT \" , [ \" x\" , false ] ] ] ] , \
347+ [ \" tt_tok\" , [ null, [ \" SEMI \" , [ ] ] ] ] , \
348+ [ \" tt_tok\" , [ null, [ \" RBRACE \" , [ ] ] ] ] \
349+ ] \
350+ ] ] \
351+ ] "
352+ );
342353 let ast1 = new_parser_from_tts(new_parse_sess(None),~[],tts)
343354 .parse_item(~[]);
344355 let ast2 = parse_item_from_source_str(
0 commit comments