2020-02-01 23:09:22 -05:00
|
|
|
#![cfg(test)]
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
mod macros;
|
|
|
|
|
|
|
|
test!(
|
|
|
|
removes_double_quotes,
|
|
|
|
"a {\n color: #{\"red\"};\n}\n",
|
|
|
|
"a {\n color: red;\n}\n"
|
|
|
|
);
|
|
|
|
test!(
|
|
|
|
removes_single_quotes,
|
|
|
|
"a {\n color: #{'red'};\n}\n",
|
|
|
|
"a {\n color: red;\n}\n"
|
|
|
|
);
|
2020-02-08 17:33:52 -05:00
|
|
|
test!(
|
|
|
|
number_after_interpolation,
|
|
|
|
"a {\n color: a#{foo}1;\n}\n",
|
|
|
|
"a {\n color: afoo1;\n}\n"
|
|
|
|
);
|
2020-02-14 13:27:08 -05:00
|
|
|
test!(
|
|
|
|
double_hyphen_before_interpolation,
|
|
|
|
"a {\n --#{foo}: red;\n}\n",
|
|
|
|
"a {\n --foo: red;\n}\n"
|
|
|
|
);
|
2020-02-24 16:58:48 -05:00
|
|
|
test!(
|
|
|
|
preserves_inner_single_quotes,
|
|
|
|
"a {\n color: #{\"''\"};\n}\n",
|
|
|
|
"a {\n color: '';\n}\n"
|
|
|
|
);
|