Update tests

This commit is contained in:
Alex Beregszaszi
2020-12-14 19:32:31 +00:00
parent 15237c8404
commit edbdff8619
71 changed files with 214 additions and 219 deletions
@@ -5,9 +5,9 @@ contract c {
bytes data;
function test() public returns (bool) {
for (uint8 i = 0; i <= 40; i++)
data.push(byte(i+1));
data.push(bytes1(i+1));
for (int8 j = 40; j >= 0; j--) {
require(data[uint8(j)] == byte(uint8(j+1)));
require(data[uint8(j)] == bytes1(uint8(j+1)));
require(data.length == uint8(j+1));
data.pop();
}