From 10a30b4c659c6dc6dc4320d2d198adb3d512ead6 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Wed, 20 May 2020 20:35:59 -0400 Subject: [PATCH] test for comma separated list as map key --- tests/map.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/map.rs b/tests/map.rs index 100d2e2..ce4e6ab 100644 --- a/tests/map.rs +++ b/tests/map.rs @@ -152,3 +152,14 @@ error!( display_map, "a {\n color: (a: b, c: d);\n}\n", "Error: (a: b, c: d) isn't a valid CSS value." ); +test!( + map_comma_separated_list_as_key, + "a {\n color: map-keys(((1, 2): 3));\n}\n", + "a {\n color: 1, 2;\n}\n" +); +test!( + #[ignore = "blocked on rewriting inspect"] + map_inspect_comma_separated_list_as_key, + "a {\n color: inspect(((1, 2): 3));\n}\n", + "a {\n color: ((1, 2): 3);\n}\n" +);