From 88631b57cbdf2424bc02f1fc37bb20ac6dc38a1a Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Wed, 28 May 2014 08:10:52 -0700 Subject: [PATCH] Actually fully test deserializing structs --- json.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json.rs b/json.rs index e3b98168..fb840a52 100644 --- a/json.rs +++ b/json.rs @@ -3000,15 +3000,15 @@ mod tests { fn test_decode_struct() { let s = "{ \"inner\": [ + { \"a\": null, \"b\": 2, \"c\": [\"abc\", \"xyz\"] } ] }"; - //{ \"a\": null, \"b\": 2, \"c\": [\"abc\", \"xyz\"] } let v: Outer = from_iter(s.chars()).unwrap(); assert_eq!( v, Outer { inner: vec![ - //Inner { a: (), b: 2, c: vec!["abc".to_strbuf(), "xyz".to_strbuf()] } + Inner { a: (), b: 2, c: vec!["abc".to_strbuf(), "xyz".to_strbuf()] } ] } );