Rollup merge of 21662 - oli-obk:hashmap_enum_json, r=alexcrichton

This commit is contained in:
Manish Goregaokar
2015-01-29 03:15:51 +05:30
5 changed files with 29 additions and 13 deletions

View File

@@ -854,7 +854,7 @@ mod test {
#[test]
fn string_to_tts_1 () {
let tts = string_to_tts("fn a (b : i32) { b; }".to_string());
assert_eq!(json::encode(&tts),
assert_eq!(json::encode(&tts).unwrap(),
"[\
{\
\"variant\":\"TtToken\",\