Update tests

This commit is contained in:
Alex Beregszaszi 2021-05-14 19:17:41 +01:00
parent bb7f500bb1
commit e73ee468a8
4 changed files with 13 additions and 19 deletions

View File

@ -6,7 +6,6 @@ contract C {
}
}
// ====
// compileViaYul: also
// ABIEncoderV1Only: true
// ----
// f() -> 0x40, 0xa0, 0x40, 0x20, 0x0, 0x0

View File

@ -0,0 +1,13 @@
pragma abicoder v2;
contract C {
function f(uint16 a, uint16 b) public returns (uint16) {
return a + b;
}
}
// ====
// compileViaYul: also
// ----
// f(uint16,uint16): 65534, 0 -> 0xfffe
// f(uint16,uint16): 65536, 0 -> FAILURE
// f(uint16,uint16): 65535, 0 -> 0xffff
// f(uint16,uint16): 65535, 1 -> FAILURE, hex"4e487b71", 0x11

View File

@ -1,18 +0,0 @@
contract C {
function f() public {
revert("");
}
function g(string calldata msg) public {
revert(msg);
}
}
// ====
// ABIEncoderV1Only: true
// EVMVersion: >=byzantium
// compileViaYul: true
// revertStrings: debug
// ----
// f() -> FAILURE, hex"08c379a0", 0x20, 0
// g(string): "" -> FAILURE, hex"08c379a0", 0x20, 0
// g(string): 0x20, 0, "" -> FAILURE, hex"08c379a0", 0x20, 0
// g(string): 0x20, 0 -> FAILURE, hex"08c379a0", 0x20, 0