grass/tests/list.rs

21 lines
376 B
Rust
Raw Normal View History

#![cfg(test)]
#[macro_use]
mod macros;
test!(
length_of_list_as_var,
"$a: 1 2 3 4 5;a {\n color: length($a);\n}\n",
"a {\n color: 5;\n}\n"
);
test!(
length_of_list,
"a {\n color: length(1 2 3 4 5);\n}\n",
"a {\n color: 5;\n}\n"
);
test!(
length_of_comma_list,
"a {\n color: length((1, 2, 3, 4, 5));\n}\n",
"a {\n color: 5;\n}\n"
);