From 06be720f497ccc484ac0da5bcdf3c0ae76ce1605 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 1 Feb 2020 11:31:49 -0500 Subject: [PATCH] Tests for nested selector combinators --- tests/main.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/main.rs b/tests/main.rs index fcefeb9..d98e3f0 100644 --- a/tests/main.rs +++ b/tests/main.rs @@ -130,6 +130,21 @@ mod test_variables { "a {\n $a: red\n}\n\nb {\n color: blue;\n}\n", "b {\n color: blue;\n}\n" ); + test!( + combinator_following, + "a + {\n b {\n color: red;\n }\n}\n", + "a + b {\n color: red;\n}\n" + ); + test!( + combinator_preceding, + "a {\n + b {\n color: red;\n }\n}\n", + "a + b {\n color: red;\n}\n" + ); + test!( + combinator_alone, + "a {\n + {\n b {\n color: red;\n }\n}\n", + "a + b {\n color: red;\n}\n" + ); } mod test_selectors {