Adjust tests.

This commit is contained in:
Daniel Kirchner
2021-09-13 20:41:40 +02:00
parent 153b0bf4ba
commit a8f7c69c47
421 changed files with 457 additions and 36 deletions
@@ -45,6 +45,7 @@ contract C {
}
}
// ====
// requiresYulOptimizer: minimalStack
// compileViaYul: also
// revertStrings: debug
// ----
@@ -56,19 +57,19 @@ contract C {
// slice(bytes): 0x20, 4, "abcd" -> 0x20, 4, "abcd"
// strParam(string): 0x20, 32, "abcdabcdabcdabcdabcdabcdabcdabcd" -> 0x20, 37, "abcdabcdabcdabcdabcdabcdabcdabcd", "bcdef"
// fixedBytesParam(bytes16,bytes15,bytes31):
// "aabbccddeeffgghh",
// "abcdefghabcdefg",
// "0123456789012345678901234567890" ->
// 0x80, 0xc0, 0x120, 0x160,
// 31, "aabbccddeeffgghhabcdefghabcdefg",
// 47, "aabbccddeeffgghh0123456789012345", "678901234567890",
// 21, "aabbccddeeffgghhbcdef",
// 21, "aabbccddeeffgghhbcdef"
// "aabbccddeeffgghh",
// "abcdefghabcdefg",
// "0123456789012345678901234567890" ->
// 0x80, 0xc0, 0x120, 0x160,
// 31, "aabbccddeeffgghhabcdefghabcdefg",
// 47, "aabbccddeeffgghh0123456789012345", "678901234567890",
// 21, "aabbccddeeffgghhbcdef",
// 21, "aabbccddeeffgghhbcdef"
// fixedBytesParam2(bytes,bytes6,bytes6): 0x60, left(0x010203040506), left(0x0708090A0B0C), 20, left(0x1011121314151617181920212223242526272829) ->
// 0x40, 0x80,
// 31, left(0x62636465660102030405061011121314151617181920212223242526272829),
// 32, 0x01020304050610111213141516171819202122232425262728290708090A0B0C
// 0x40, 0x80,
// 31, left(0x62636465660102030405061011121314151617181920212223242526272829),
// 32, 0x01020304050610111213141516171819202122232425262728290708090A0B0C
// fixedBytesParam2(bytes,bytes6,bytes6): 0x60, left(0x01), left(0x02), 5, left(0x03) ->
// 0x40, 0x80,
// 16, left(0x6263646566010000000000030000000000),
// 17, left(0x010000000000030000000002000000000000)
// 0x40, 0x80,
// 16, left(0x6263646566010000000000030000000000),
// 17, left(0x010000000000030000000002000000000000)
@@ -19,6 +19,7 @@ contract C {
}
}
// ====
// requiresYulOptimizer: minimalStack
// compileToEwasm: also
// compileViaYul: also
// ----