From 425c36be86545f43f34b203b94e0262cb44ded1b Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Wed, 13 May 2020 00:19:21 -0400 Subject: [PATCH] improve tests for feature-exists --- tests/meta.rs | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/tests/meta.rs b/tests/meta.rs index 2f13457..bda5121 100644 --- a/tests/meta.rs +++ b/tests/meta.rs @@ -29,20 +29,35 @@ test!( "a {\n color: 2;\n}\n" ); test!( - feature_exists_at_error_dbl_quoted, + feature_exists_dbl_quoted, "a {\n color: feature-exists(\"at-error\")\n}\n", "a {\n color: true;\n}\n" ); test!( - feature_exists_at_error_sgl_quoted, + feature_exists_sgl_quoted, "a {\n color: feature-exists('at-error')\n}\n", "a {\n color: true;\n}\n" ); test!( - feature_exists_at_error_no_quotes, + feature_exists_no_quotes, "a {\n color: feature-exists(at-error)\n}\n", "a {\n color: true;\n}\n" ); +test!( + feature_exists_at_error, + "a {\n color: feature-exists(at-error)\n}\n", + "a {\n color: true;\n}\n" +); +test!( + feature_exists_named_arg, + "a {\n color: feature-exists($feature: at-error)\n}\n", + "a {\n color: true;\n}\n" +); +test!( + feature_exists_case_sensitive, + "a {\n color: feature-exists(at-erroR)\n}\n", + "a {\n color: false;\n}\n" +); test!( feature_exists_global_variable_shadowing, "a {\n color: feature-exists(global-variable-shadowing)\n}\n",