diff options
author | Nadrieril | 2020-04-10 12:10:53 +0100 |
---|---|---|
committer | Nadrieril | 2020-04-10 12:10:53 +0100 |
commit | efe4b340bebaa7ef8bce6e69194959b126c5fade (patch) | |
tree | 627fa7b0b2b951efc4102d02e0a8f5a05e4aa03e /serde_dhall/tests | |
parent | da80ef06a91e3869cc3c1d4dbd07259c408ff490 (diff) |
Deserialize `Prelude.Map` and `toMap` to a map instead of a list
Diffstat (limited to 'serde_dhall/tests')
-rw-r--r-- | serde_dhall/tests/de.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/serde_dhall/tests/de.rs b/serde_dhall/tests/de.rs index 41b4080..1932e26 100644 --- a/serde_dhall/tests/de.rs +++ b/serde_dhall/tests/de.rs @@ -80,6 +80,10 @@ fn test_de_untyped() { parse::<HashMap<String, usize>>("{ x = 1, y = 2 }"), expected_map ); + assert_eq!( + parse::<HashMap<String, usize>>("toMap { x = 1, y = 2 }"), + expected_map + ); let mut expected_map = HashMap::new(); expected_map.insert("if".to_string(), 1); |