aboutsummaryrefslogtreecommitdiffstats
path: root/tests/state_test_util.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-06-11 06:11:30 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-06-19 04:20:45 +0800
commit6ff956394a26fe13c774797284220b8231ebf809 (patch)
treef5d739218bf55a62505cb809e076613c9bb5ebac /tests/state_test_util.go
parentac0637c41332de1f49fb0955f4fbe0fb908a77d5 (diff)
downloaddexon-6ff956394a26fe13c774797284220b8231ebf809.tar
dexon-6ff956394a26fe13c774797284220b8231ebf809.tar.gz
dexon-6ff956394a26fe13c774797284220b8231ebf809.tar.bz2
dexon-6ff956394a26fe13c774797284220b8231ebf809.tar.lz
dexon-6ff956394a26fe13c774797284220b8231ebf809.tar.xz
dexon-6ff956394a26fe13c774797284220b8231ebf809.tar.zst
dexon-6ff956394a26fe13c774797284220b8231ebf809.zip
DRY file loading
Diffstat (limited to 'tests/state_test_util.go')
-rw-r--r--tests/state_test_util.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/state_test_util.go b/tests/state_test_util.go
index b507de47f..cd87ee75e 100644
--- a/tests/state_test_util.go
+++ b/tests/state_test_util.go
@@ -21,7 +21,7 @@ func RunStateTest(p string) error {
}
tests := make(map[string]VmTest)
- CreateFileTests(p, &tests)
+ readTestFile(p, &tests)
for name, test := range tests {
if skipTest[name] {
@@ -61,16 +61,10 @@ func RunStateTest(p string) error {
ret, logs, _, _ = RunState(statedb, env, test.Transaction)
// // Compare expected and actual return
- // switch name {
- // // the memory required for these tests (4294967297 bytes) would take too much time.
- // // on 19 May 2015 decided to skip these tests their output.
- // case "mload32bitBound_return", "mload32bitBound_return2":
- // default:
rexp := common.FromHex(test.Out)
if bytes.Compare(rexp, ret) != 0 {
return fmt.Errorf("%s's return failed. Expected %x, got %x\n", name, rexp, ret)
}
- // }
// check post state
for addr, account := range test.Post {