1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/core/vm/testdata
Martin Holst Swende 36b78abe61
core/vm: instruction tests (#16327)
This PR makes it easy to generate and execute testcases for VM arithmetic operations. By enabling and running the testcase TestWriteExpectedValues, a set of json files are created which contain input and output for each arith operation.
The test TestJsonTestcases executes all of those tests.

While meaningless as is, this PR makes it less risky to make changes (optimizations) to the vm operations, since there will be a larger body of testcases.
2019-04-04 11:19:38 +02:00
..
testcases_add.json
testcases_and.json
testcases_byte.json
testcases_div.json
testcases_eq.json
testcases_exp.json
testcases_gt.json
testcases_lt.json
testcases_mod.json
testcases_mul.json
testcases_or.json
testcases_sar.json
testcases_sdiv.json
testcases_sgt.json
testcases_shl.json
testcases_shr.json
testcases_signext.json
testcases_slt.json
testcases_smod.json
testcases_sub.json
testcases_xor.json