grass/tests/null.rs
2020-04-19 00:39:18 -04:00

31 lines
564 B
Rust

#![cfg(test)]
#[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",
""
);