31 lines
559 B
Rust
31 lines
559 B
Rust
#![cfg(test)]
|
|
|
|
#[macro_use]
|
|
mod macros;
|
|
|
|
test!(
|
|
none_div_none,
|
|
"a {\n color: (35 / 7);\n}\n",
|
|
"a {\n color: 5;\n}\n"
|
|
);
|
|
test!(
|
|
unit_div_none,
|
|
"a {\n color: (35% / 7);\n}\n",
|
|
"a {\n color: 5%;\n}\n"
|
|
);
|
|
test!(
|
|
unit_div_unit,
|
|
"a {\n color: (35% / 7%);\n}\n",
|
|
"a {\n color: 5;\n}\n"
|
|
);
|
|
test!(
|
|
unit_conversion,
|
|
"a {\n color: (35px / 7in);\n}\n",
|
|
"a {\n color: 0.0520833333;\n}\n"
|
|
);
|
|
test!(
|
|
slash_after_comma,
|
|
"a {\n slash-after-comma: (1, / 2);\n}\n",
|
|
"a {\n slash-after-comma: 1, /2;\n}\n"
|
|
);
|