aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-09-09 00:27:22 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-09-18 17:39:08 +0800
commit9252bea4beba0438a0198a0371556e80f55ea4b5 (patch)
tree1c878e9875da8d4978ee771f33d599f91724c249 /src/GeneralStateTestsFiller
parentd743bfccc1a122ed9248051fbc7434a2e0dfb465 (diff)
downloadtangerine-tests-9252bea4beba0438a0198a0371556e80f55ea4b5.tar
tangerine-tests-9252bea4beba0438a0198a0371556e80f55ea4b5.tar.gz
tangerine-tests-9252bea4beba0438a0198a0371556e80f55ea4b5.tar.bz2
tangerine-tests-9252bea4beba0438a0198a0371556e80f55ea4b5.tar.lz
tangerine-tests-9252bea4beba0438a0198a0371556e80f55ea4b5.tar.xz
tangerine-tests-9252bea4beba0438a0198a0371556e80f55ea4b5.tar.zst
tangerine-tests-9252bea4beba0438a0198a0371556e80f55ea4b5.zip
Add some more modexp cases
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r--src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json90
1 files changed, 88 insertions, 2 deletions
diff --git a/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json b/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json
index 9f32208e1..4c6fb07c1 100644
--- a/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json
+++ b/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json
@@ -91,6 +91,86 @@
},
{
"indexes" : {
+ "data" : [31],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "1000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x01",
+ "0x02" : "0x0100000000000000000000000000000000"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [32],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "1000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x01",
+ "0x02" : "0x010000000000000000000000000000000000000000"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [33],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "1000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x01",
+ "0x02" : "0x010000000000000000000000000000000000000000000000000000"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [34],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "1000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x01",
+ "0x02" : "0x0100000000000000000000000000000000000000"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [35],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "1000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x01",
+ "0x02" : "0x010000000000000000000000000000"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
"data" : [3,4],
"gas" : 0,
"value" : -1
@@ -199,7 +279,8 @@
"27 - 02 ** 03 % 06, but exp with 256 bytes of zero in front.",
"28 - base length 4TiB",
"29 - exp length 4TiB; returns 0 because mod is zero",
- "30 - base and mod have zero-length. exp's length is 2^255. Since mod is zero, the result should be zero."
+ "30 - base and mod have zero-length. exp's length is 2^255. Since mod is zero, the result should be zero.",
+ "31,32,33,34,35 - something that should result in 1."
],
"data" : [
"0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002003fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2efffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",
@@ -232,7 +313,12 @@
"0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030006",
"0x00000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000",
-"0x000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+"0x000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+"0x000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010035ee4e488f45e64d2f07becd54646357381d32f30b74c299a8c25d5202c04938ef6c4764a04f10fc908b78c4486886000f6d290251a79681a83b950c7e5c37351",
+"0x0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000cd935b43e42204fcbfb734a6e27735e8e90204fcc1fd2727bb040f9eecb",
+"0x0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060846813a8d2d451387340fa0597c6545ae63",
+"0x0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000d000000000000000000000000000000000000000000000000000000000000000d02534f82b1013f20d9c7d18d62cd95674d2e013f20d9c7d18d62cd95674d2f",
+"0x0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000120785e45de3d6be050ba3c4d33ff0bb2d010ace3b1dfe9c49f4c7a8075102fa19a86c010ace3b1dfe9c49f4c7a8075102fa19a86d"
],
"gasLimit" : [
"100000000", "90000", "110000", "200000"