mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-27 22:28:21 +00:00
36b78abe61
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. |
||
---|---|---|
.. | ||
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 |