diff options
author | Aleksey Ivanov <ialexxei@gmail.com> | 2018-04-09 20:03:07 +0300 |
---|---|---|
committer | Aleksey Ivanov <ialexxei@gmail.com> | 2018-04-09 21:40:34 +0300 |
commit | 7ba954942ab9acd8b658636cf775c4360ec76272 (patch) | |
tree | 4d55b16a9c7270c7e0b17afaf20a7b213d24e00b /tests/get.rs | |
parent | e8fa9fee96185ddd18ebcef8a925c75459111edb (diff) |
[Close #70] Support newtype struct deserialization
Diffstat (limited to 'tests/get.rs')
-rw-r--r-- | tests/get.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/get.rs b/tests/get.rs index 517339e..dac138c 100644 --- a/tests/get.rs +++ b/tests/get.rs @@ -107,7 +107,7 @@ fn test_map() { let c = make(); let m: HashMap<String, Value> = c.get("place").unwrap(); - assert_eq!(m.len(), 7); + assert_eq!(m.len(), 8); assert_eq!( m["name"].clone().into_str().unwrap(), "Torre di Pisa".to_string() @@ -134,7 +134,7 @@ fn test_map_struct() { let c = make(); let s: Settings = c.try_into().unwrap(); - assert_eq!(s.place.len(), 7); + assert_eq!(s.place.len(), 8); assert_eq!( s.place["name"].clone().into_str().unwrap(), "Torre di Pisa".to_string() |