more tests for type-of

This commit is contained in:
ConnorSkees 2020-04-26 23:14:22 -04:00
parent 7db57054e1
commit e1db99351a

View File

@ -167,6 +167,21 @@ test!(
"a {\n color: type-of(hi + bye)\n}\n", "a {\n color: type-of(hi + bye)\n}\n",
"a {\n color: string;\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!( test!(
type_of_arglist, type_of_arglist,
"@mixin foo($a...) {color: type-of($a);}\na {@include foo(1, 2, 3, 4, 5);}", "@mixin foo($a...) {color: type-of($a);}\na {@include foo(1, 2, 3, 4, 5);}",