From 1676930a1644f06dafc66e2b5595eb343ffebc07 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 5 Jan 2014 20:41:01 +0100 Subject: updated testing" --- parsing_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parsing_test.go') 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) } -- cgit v1.2.3