test for comma separated lists in @each

This commit is contained in:
ConnorSkees 2020-03-31 01:08:02 -04:00
parent f7d9d4432a
commit 539243bb6e

View File

@ -8,6 +8,11 @@ test!(
"a {\n @each $i in 1 2 3 {\n color: $i;\n }\n}\n", "a {\n @each $i in 1 2 3 {\n color: $i;\n }\n}\n",
"a {\n color: 1;\n color: 2;\n color: 3;\n}\n" "a {\n color: 1;\n color: 2;\n color: 3;\n}\n"
); );
test!(
each_comma_separated_inner,
"a {\n @each $i in 1, 2, 3 {\n color: $i;\n }\n}\n",
"a {\n color: 1;\n color: 2;\n color: 3;\n}\n"
);
test!( test!(
each_space_separated_outer, each_space_separated_outer,
"@each $i in 1 2 3 {\n a {\n color: $i;\n }\n}\n", "@each $i in 1 2 3 {\n a {\n color: $i;\n }\n}\n",