diff options
author | chriseth <c@ethdev.com> | 2016-08-17 17:27:08 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-08-17 17:27:15 +0800 |
commit | 34f9a59f18dcf8601d910aef599b2589dc080e2d (patch) | |
tree | 41bea142c4518b93af01b6d951516405615039fd /test/libsolidity/SolidityExpressionCompiler.cpp | |
parent | e7084d9e16d0b370cab29d1f9ba08f07844b55f5 (diff) | |
download | dexon-solidity-34f9a59f18dcf8601d910aef599b2589dc080e2d.tar.gz dexon-solidity-34f9a59f18dcf8601d910aef599b2589dc080e2d.tar.zst dexon-solidity-34f9a59f18dcf8601d910aef599b2589dc080e2d.zip |
Fix tests.
Diffstat (limited to 'test/libsolidity/SolidityExpressionCompiler.cpp')
-rw-r--r-- | test/libsolidity/SolidityExpressionCompiler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityExpressionCompiler.cpp b/test/libsolidity/SolidityExpressionCompiler.cpp index 967b2907..e9a05745 100644 --- a/test/libsolidity/SolidityExpressionCompiler.cpp +++ b/test/libsolidity/SolidityExpressionCompiler.cpp @@ -323,7 +323,15 @@ BOOST_AUTO_TEST_CASE(arithmetics) byte(Instruction::OR), byte(Instruction::SUB), byte(Instruction::ADD), + byte(Instruction::DUP2), + byte(Instruction::ISZERO), + byte(Instruction::PUSH1), 0x2, + byte(Instruction::JUMPI), byte(Instruction::MOD), + byte(Instruction::DUP2), + byte(Instruction::ISZERO), + byte(Instruction::PUSH1), 0x2, + byte(Instruction::JUMPI), byte(Instruction::DIV), byte(Instruction::MUL)}); BOOST_CHECK_EQUAL_COLLECTIONS(code.begin(), code.end(), expectation.begin(), expectation.end()); |