aboutsummaryrefslogtreecommitdiffstats
path: root/parsing_test.go
diff options
context:
space:
mode:
authorobscuren <obscuren@obscura.com>2014-01-03 06:02:24 +0800
committerobscuren <obscuren@obscura.com>2014-01-03 06:02:24 +0800
commit9df4c745119b3ed10a7ad17887e8dd9cac249af7 (patch)
tree8ae82afaf78a225d685a146a4cc67a77d3ca773d /parsing_test.go
parent5b3d4fae6e03e5471a10c653fc0b016cc5e5dcfa (diff)
downloadgo-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.tar
go-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.tar.gz
go-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.tar.bz2
go-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.tar.lz
go-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.tar.xz
go-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.tar.zst
go-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.zip
WIP rewrite vm
Diffstat (limited to 'parsing_test.go')
-rw-r--r--parsing_test.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/parsing_test.go b/parsing_test.go
index 93fe434b9..fa319e7bf 100644
--- a/parsing_test.go
+++ b/parsing_test.go
@@ -19,22 +19,13 @@ func TestCompile(t *testing.T) {
}
func TestValidInstr(t *testing.T) {
+ /*
op, args, err := Instr("68163")
if err != nil {
t.Error("Error decoding instruction")
}
+ */
- if op != oSET {
- t.Error("Expected op to be 43, got:", op)
- }
-
- if args[0] != "10" {
- t.Error("Expect args[0] to be 10, got:", args[0])
- }
-
- if args[1] != "1" {
- t.Error("Expected args[1] to be 1, got:", args[1])
- }
}
func TestInvalidInstr(t *testing.T) {