From e1db99351a36c9e0bdbf4cfe0a22d1a3c7ba0a45 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 26 Apr 2020 23:14:22 -0400 Subject: [PATCH] more tests for type-of --- tests/meta.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/meta.rs b/tests/meta.rs index bdb489f..2f13457 100644 --- a/tests/meta.rs +++ b/tests/meta.rs @@ -167,6 +167,21 @@ test!( "a {\n color: type-of(hi + bye)\n}\n", "a {\n color: string;\n}\n" ); +test!( + type_of_map, + "a {\n color: type-of((a: b, c: d))\n}\n", + "a {\n color: map;\n}\n" +); +test!( + type_of_parens, + "a {\n color: type-of(((a)))\n}\n", + "a {\n color: string;\n}\n" +); +test!( + type_of_unary_op, + "a {\n color: type-of(- 2)\n}\n", + "a {\n color: number;\n}\n" +); test!( type_of_arglist, "@mixin foo($a...) {color: type-of($a);}\na {@include foo(1, 2, 3, 4, 5);}",