error tests for to-{upper,lower}-case

This commit is contained in:
ConnorSkees 2020-05-19 00:21:43 -04:00
parent dae7a5028d
commit 9a3035049a

View File

@ -13,6 +13,16 @@ test!(
"a {\n color: to-lower-case(AbC123);\n}\n", "a {\n color: to-lower-case(AbC123);\n}\n",
"a {\n color: abc123;\n}\n" "a {\n color: abc123;\n}\n"
); );
error!(
uppercase_non_ident,
"a {\n color: to-upper-case(123);\n}\n",
"Error: $string: 123 is not a string."
);
error!(
lowercase_non_ident,
"a {\n color: to-lower-case(123);\n}\n",
"Error: $string: 123 is not a string."
);
test!( test!(
uppercase_named_arg, uppercase_named_arg,
"a {\n color: to-upper-case($string: aBc123);\n}\n", "a {\n color: to-upper-case($string: aBc123);\n}\n",