add test for integer overflow in division

This commit is contained in:
Connor Skees 2020-08-21 07:00:42 -04:00
parent 5bf03c15d6
commit 4635f76fa5

View File

@ -154,6 +154,11 @@ test!(
"a {\n color: 999999999999999999 * 10;\n}\n",
"a {\n color: 9999999999999999990;\n}\n"
);
test!(
number_overflow_from_division,
"a {\n color: (999999999999999999 / .1);\n}\n",
"a {\n color: 9999999999999999990;\n}\n"
);
// we use arbitrary precision, so it is necessary to limit the size of exponents
// in order to prevent hangs
error!(