Test for trailing comma in function args

This commit is contained in:
ConnorSkees 2020-02-16 21:46:11 -05:00
parent 95f8917d6c
commit a44e52c7e3

View File

@ -33,6 +33,11 @@ test!(
"$x: red;\n\n@function a($a) {\n @return $a;\n}\n\nb {\ncolor: a($a: $x);\n}\n",
"b {\n color: red;\n}\n"
);
test!(
function_trailing_comma,
"@function a($a) {\n @return $a;\n}\n\nb {\ncolor: a(red,);\n}\n",
"b {\n color: red;\n}\n"
);
// test!(
// return_no_semicolon,
// "@function a() {\n @return 1\n}\n\nb {\ncolor: a();\n}\n",