Test for trailing comma in function args
This commit is contained in:
parent
95f8917d6c
commit
a44e52c7e3
@ -33,6 +33,11 @@ test!(
|
|||||||
"$x: red;\n\n@function a($a) {\n @return $a;\n}\n\nb {\ncolor: a($a: $x);\n}\n",
|
"$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"
|
"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!(
|
// test!(
|
||||||
// return_no_semicolon,
|
// return_no_semicolon,
|
||||||
// "@function a() {\n @return 1\n}\n\nb {\ncolor: a();\n}\n",
|
// "@function a() {\n @return 1\n}\n\nb {\ncolor: a();\n}\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user