Another test for division.

This commit is contained in:
chriseth
2017-11-30 01:20:21 +01:00
parent d160ec8595
commit 00e252a39f
+10
View File
@@ -530,6 +530,16 @@ BOOST_AUTO_TEST_CASE(division_truncates_correctly)
}
)";
CHECK_SUCCESS_NO_WARNINGS(text);
text = R"(
contract C {
function f(int x, int y) public pure {
x = 7;
y = -2;
assert(x / y == -3);
}
}
)";
CHECK_SUCCESS_NO_WARNINGS(text);
text = R"(
contract C {
function f(int x, int y) public pure {