aboutsummaryrefslogtreecommitdiffstats
path: root/tests/state_test_util.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-09-21 17:34:02 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-09-21 17:34:02 +0800
commit5621308949cc5573297bd70826421db00c1fd4ba (patch)
tree33e16f37699549d4e75397f6474dc2f0275a79a6 /tests/state_test_util.go
parente40b447fead5ec3c4ccb133418431ea25be3c545 (diff)
downloaddexon-5621308949cc5573297bd70826421db00c1fd4ba.tar
dexon-5621308949cc5573297bd70826421db00c1fd4ba.tar.gz
dexon-5621308949cc5573297bd70826421db00c1fd4ba.tar.bz2
dexon-5621308949cc5573297bd70826421db00c1fd4ba.tar.lz
dexon-5621308949cc5573297bd70826421db00c1fd4ba.tar.xz
dexon-5621308949cc5573297bd70826421db00c1fd4ba.tar.zst
dexon-5621308949cc5573297bd70826421db00c1fd4ba.zip
tests: add test for StateTests/stCallCodes.json
Diffstat (limited to 'tests/state_test_util.go')
-rw-r--r--tests/state_test_util.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/state_test_util.go b/tests/state_test_util.go
index 086822461..95ecdd0a8 100644
--- a/tests/state_test_util.go
+++ b/tests/state_test_util.go
@@ -128,6 +128,7 @@ func runStateTests(tests map[string]VmTest, skipTests []string) error {
return nil
}
+ //fmt.Println("StateTest name:", name)
if err := runStateTest(test); err != nil {
return fmt.Errorf("%s: %s\n", name, err.Error())
}
@@ -172,7 +173,7 @@ func runStateTest(test VmTest) error {
ret, logs, _, _ = RunState(statedb, env, test.Transaction)
- // // Compare expected and actual return
+ // Compare expected and actual return
rexp := common.FromHex(test.Out)
if bytes.Compare(rexp, ret) != 0 {
return fmt.Errorf("return failed. Expected %x, got %x\n", rexp, ret)