diff --git a/tests/meta.rs b/tests/meta.rs index 3119cad..0c3678f 100644 --- a/tests/meta.rs +++ b/tests/meta.rs @@ -84,11 +84,6 @@ test!( "a {\n color: unit(1)\n}\n", "a {\n color: \"\";\n}\n" ); -test!( - unit_non_numeric, - "a {\n color: unit(red)\n}\n", - "a {\n color: \"\";\n}\n" -); test!( unit_named_args, "a {\n color: unit($number: 1px)\n}\n", diff --git a/tests/misc.rs b/tests/misc.rs index 80e0b8b..dfcef7f 100644 --- a/tests/misc.rs +++ b/tests/misc.rs @@ -46,3 +46,15 @@ test!( "a {\n color: red; ;\n}\n", "a {\n color: red;\n}\n" ); +// these two precisiont tests only act like this in dart sass +// these values are `1` for libsass +test!( + precision_does_not_round_up, + "a {\n color: 0.99999999991;\n}\n", + "a {\n color: 0.9999999999;\n}\n" +); +test!( + precision_does_round_up, + "a {\n color: 1.00000000009;\n}\n", + "a {\n color: 1.0000000001;\n}\n" +);