Skip to content

Commit

Permalink
test: Add evm.return_empty_buffer_at_offset_0
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Oct 20, 2020
1 parent 5122f4f commit a4a1276
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unittests/evm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,12 @@ TEST_P(evm, revert)
EXPECT_EQ(result.output_data[1], 0xee);
}

TEST_P(evm, return_empty_buffer_at_offset_0)
{
execute(dup1(OP_MSIZE) + OP_RETURN);
EXPECT_GAS_USED(EVMC_SUCCESS, 5);
}

TEST_P(evm, return_empty_buffer_at_high_offset)
{
host.tx_context.block_difficulty =
Expand Down

0 comments on commit a4a1276

Please sign in to comment.