parent
fa59db7595
commit
461324a801
|
@ -14,7 +14,7 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/logger"
|
"github.com/ethereum/go-ethereum/logger"
|
||||||
"github.com/ethereum/go-ethereum/state"
|
"github.com/ethereum/go-ethereum/state"
|
||||||
"github.com/ethereum/go-ethereum/trie"
|
"github.com/ethereum/go-ethereum/trie"
|
||||||
"github.com/obscuren/mutan"
|
// "github.com/obscuren/mutan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TestEnv struct{}
|
type TestEnv struct{}
|
||||||
|
@ -67,9 +67,9 @@ func setup(level logger.LogLevel, typ Type) (*Closure, VirtualMachine) {
|
||||||
var big9 = ethutil.Hex2Bytes("0000000000000000000000000000000000000000000000000000000000000009")
|
var big9 = ethutil.Hex2Bytes("0000000000000000000000000000000000000000000000000000000000000009")
|
||||||
|
|
||||||
func TestDebugVm(t *testing.T) {
|
func TestDebugVm(t *testing.T) {
|
||||||
if mutan.Version < "0.6" {
|
// if mutan.Version < "0.6" {
|
||||||
t.Skip("skipping for mutan version", mutan.Version, " < 0.6")
|
// t.Skip("skipping for mutan version", mutan.Version, " < 0.6")
|
||||||
}
|
// }
|
||||||
|
|
||||||
closure, vm := setup(logger.DebugLevel, DebugVmTy)
|
closure, vm := setup(logger.DebugLevel, DebugVmTy)
|
||||||
ret, _, e := closure.Call(vm, nil)
|
ret, _, e := closure.Call(vm, nil)
|
||||||
|
@ -82,9 +82,9 @@ func TestDebugVm(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestVm(t *testing.T) {
|
func TestVm(t *testing.T) {
|
||||||
if mutan.Version < "0.6" {
|
// if mutan.Version < "0.6" {
|
||||||
t.Skip("skipping for mutan version", mutan.Version, " < 0.6")
|
// t.Skip("skipping for mutan version", mutan.Version, " < 0.6")
|
||||||
}
|
// }
|
||||||
|
|
||||||
closure, vm := setup(logger.DebugLevel, StandardVmTy)
|
closure, vm := setup(logger.DebugLevel, StandardVmTy)
|
||||||
ret, _, e := closure.Call(vm, nil)
|
ret, _, e := closure.Call(vm, nil)
|
||||||
|
|
Loading…
Reference in New Issue