aboutsummaryrefslogtreecommitdiffstats
path: root/parsing_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-01-06 03:41:01 +0800
committerobscuren <geffobscura@gmail.com>2014-01-06 03:41:01 +0800
commit1676930a1644f06dafc66e2b5595eb343ffebc07 (patch)
tree0c3a518c11efa5a21e8cb2a8ffdef4b7f0a064a1 /parsing_test.go
parent40dc4d0259b3bec4e8ac11dc4dd4daeaf663fa7c (diff)
downloaddexon-1676930a1644f06dafc66e2b5595eb343ffebc07.tar
dexon-1676930a1644f06dafc66e2b5595eb343ffebc07.tar.gz
dexon-1676930a1644f06dafc66e2b5595eb343ffebc07.tar.bz2
dexon-1676930a1644f06dafc66e2b5595eb343ffebc07.tar.lz
dexon-1676930a1644f06dafc66e2b5595eb343ffebc07.tar.xz
dexon-1676930a1644f06dafc66e2b5595eb343ffebc07.tar.zst
dexon-1676930a1644f06dafc66e2b5595eb343ffebc07.zip
updated testing"
Diffstat (limited to 'parsing_test.go')
-rw-r--r--parsing_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsing_test.go b/parsing_test.go
index fa319e7bf..6aa9e240c 100644
--- a/parsing_test.go
+++ b/parsing_test.go
@@ -6,13 +6,13 @@ import (
)
func TestCompile(t *testing.T) {
- instr, err := CompileInstr("SET 10 1")
+ instr, err := CompileInstr("PUSH")
if err != nil {
t.Error("Failed compiling instruction")
}
- calc := (67 + 10 * 256 + 1 * int64(math.Pow(256,2)))
+ calc := (48 + 0 * 256 + 0 * int64(math.Pow(256,2)))
if Big(instr).Int64() != calc {
t.Error("Expected", calc, ", got:", instr)
}