From 8e0fdb8585a1ca92e8b78e9b4fdce209ec6528c0 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 16 Feb 2020 21:38:29 -0500 Subject: [PATCH] Test for named arg with value of variable --- tests/functions.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/functions.rs b/tests/functions.rs index d49354b..041419f 100644 --- a/tests/functions.rs +++ b/tests/functions.rs @@ -28,6 +28,11 @@ test!( "@function a($a) {\n @return $a;\n}\n\nb {\ncolor: a(a(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!( // return_no_semicolon, // "@function a() {\n @return 1\n}\n\nb {\ncolor: a();\n}\n",