diff --git a/tests/functions.rs b/tests/functions.rs index 0376b62..dcb0387 100644 --- a/tests/functions.rs +++ b/tests/functions.rs @@ -143,3 +143,16 @@ test!( }", "a {\n color: red;\n}\n" ); +test!( + #[ignore = "haven't yet figured out how scoping works"] + function_ignores_the_scope_with_which_it_was_defined, + "a { + $a: red; + @function foo() { + @return $a; + } + $a: green; + color: foo(); + }", + "a {\n color: green;\n}\n" +); diff --git a/tests/mixins.rs b/tests/mixins.rs index 6c76e13..a2d7768 100644 --- a/tests/mixins.rs +++ b/tests/mixins.rs @@ -364,3 +364,16 @@ error!( }", "Error: Missing argument $a." ); +test!( + #[ignore = "haven't yet figured out how scoping works"] + mixin_ignores_the_scope_with_which_it_was_defined, + "a { + $a: red; + @mixin foo { + color: $a; + } + $a: green; + @include foo; + }", + "a {\n color: green;\n}\n" +);