diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-05 16:49:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-05 16:49:07 +0800 |
commit | 90bb512f420f204f50ba451a4a25682ca8443746 (patch) | |
tree | 78f58109e02bc0be780e644e04bd8fd8b733cd4d /ethchain | |
parent | 7d0348e4baf45197ca506070e06e756a4ba6ccf6 (diff) | |
download | go-tangerine-90bb512f420f204f50ba451a4a25682ca8443746.tar.gz go-tangerine-90bb512f420f204f50ba451a4a25682ca8443746.tar.zst go-tangerine-90bb512f420f204f50ba451a4a25682ca8443746.zip |
Update
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/vm_test.go | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ethchain/vm_test.go b/ethchain/vm_test.go index 838f12f56..85ec4c693 100644 --- a/ethchain/vm_test.go +++ b/ethchain/vm_test.go @@ -83,18 +83,23 @@ func TestRun4(t *testing.T) { state := NewState(ethutil.NewTrie(db, "")) asm, err := mutan.Compile(strings.NewReader(` - a = 10 - b = 10 + int32 a = 10 + int32 b = 10 if a == b { - c = 10 + int32 c = 10 if c == 10 { - d = 1000 - e = 10 + int32 d = 1000 + int32 e = 10 } } store[0] = 20 store[a] = 20 + store[b] = this.caller() + + int8[10] ret + int8[10] arg + call(1234, 0, 100000000, arg, ret) `), false) if err != nil { fmt.Println(err) |