File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -1212,7 +1212,6 @@ fn mk_ctxt() -> @fake_ext_ctxt {
1212
1212
#[ cfg( test) ]
1213
1213
fn roundtrip( in_item: Option <@ast:: item>) {
1214
1214
use core:: io;
1215
- use std::prettyprint;
1216
1215
1217
1216
let in_item = in_item. get( ) ;
1218
1217
let bytes = do io:: with_bytes_writer |wr| {
@@ -1222,17 +1221,7 @@ fn roundtrip(in_item: Option<@ast::item>) {
1222
1221
let ebml_doc = reader:: Doc ( @bytes) ;
1223
1222
let out_item = decode_item_ast( ebml_doc) ;
1224
1223
1225
- let exp_str = do io::with_str_writer |w| {
1226
- in_item.encode(&prettyprint::Serializer(w))
1227
- };
1228
- let out_str = do io::with_str_writer |w| {
1229
- out_item.encode(&prettyprint::Serializer(w))
1230
- };
1231
-
1232
- debug!(" expected string: %s", exp_str);
1233
- debug!(" actual string : %s" , out_str) ;
1234
-
1235
- assert ! ( exp_str == out_str) ;
1224
+ assert_eq!( in_item, out_item) ;
1236
1225
}
1237
1226
1238
1227
#[ test]
You can’t perform that action at this time.
0 commit comments