2020-04-19 00:39:18 -04:00
|
|
|
#[macro_use]
|
|
|
|
mod macros;
|
|
|
|
|
|
|
|
test!(
|
|
|
|
null_in_parens_in_list,
|
|
|
|
"a {\n color: (null), (null), 3, 4;\n}\n",
|
|
|
|
"a {\n color: 3, 4;\n}\n"
|
|
|
|
);
|
|
|
|
test!(
|
|
|
|
null_counted_in_list_length,
|
|
|
|
"a {\n color: length(null null null);\n}\n",
|
|
|
|
"a {\n color: 3;\n}\n"
|
|
|
|
);
|
|
|
|
test!(
|
|
|
|
simple_null_list_not_emitted,
|
|
|
|
"a {\n color: null null null;\n}\n",
|
|
|
|
""
|
|
|
|
);
|
|
|
|
test!(
|
|
|
|
paren_null_list_not_emitted,
|
|
|
|
"a {\n color: (null null null);\n}\n",
|
|
|
|
""
|
|
|
|
);
|
|
|
|
test!(
|
|
|
|
bracketed_null_list_not_emitted,
|
|
|
|
"a {\n color: [null null null];\n}\n",
|
|
|
|
""
|
|
|
|
);
|
2020-04-21 15:44:22 -04:00
|
|
|
test!(
|
|
|
|
negative_null_in_var,
|
|
|
|
"a {\n $x: null;\n color: -$x;\n}\n",
|
|
|
|
"a {\n color: -;\n}\n"
|
|
|
|
);
|
2020-07-04 11:15:18 -04:00
|
|
|
test!(
|
|
|
|
null_is_case_sensitive,
|
|
|
|
"a {\n color: NULL;\n}\n",
|
|
|
|
"a {\n color: NULL;\n}\n"
|
|
|
|
);
|