Another test for division.

This commit is contained in:
chriseth 2017-10-05 19:31:28 +02:00
parent d160ec8595
commit 00e252a39f

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 {