Test for named arg with value of variable
This commit is contained in:
parent
42cbd685d3
commit
8e0fdb8585
@ -28,6 +28,11 @@ test!(
|
|||||||
"@function a($a) {\n @return $a;\n}\n\nb {\ncolor: a(a(2));\n}\n",
|
"@function a($a) {\n @return $a;\n}\n\nb {\ncolor: a(a(2));\n}\n",
|
||||||
"b {\n color: 2;\n}\n"
|
"b {\n color: 2;\n}\n"
|
||||||
);
|
);
|
||||||
|
test!(
|
||||||
|
function_named_arg_value_variable,
|
||||||
|
"$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!(
|
// 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