about summary refs log tree commit diff
path: root/pkg/lang/vm/text/compiler_test.go
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-05-20 20:28:17 +0200
committerMel <einebeere@gmail.com>2022-05-20 20:28:17 +0200
commit6fe6e6546c4801f850d943c699fccdd5dc6ea723 (patch)
tree560aab21c9e76047730773ac4bd694e570ffc06e /pkg/lang/vm/text/compiler_test.go
parent20d84ae7ffd8a8e4c9397470e5b0459fec9a86ba (diff)
downloadjinx-6fe6e6546c4801f850d943c699fccdd5dc6ea723.tar.zst
jinx-6fe6e6546c4801f850d943c699fccdd5dc6ea723.zip
Continuous VM stack implementation
Diffstat (limited to 'pkg/lang/vm/text/compiler_test.go')
-rw-r--r--pkg/lang/vm/text/compiler_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/lang/vm/text/compiler_test.go b/pkg/lang/vm/text/compiler_test.go
index cf2f6a9..237e884 100644
--- a/pkg/lang/vm/text/compiler_test.go
+++ b/pkg/lang/vm/text/compiler_test.go
@@ -13,8 +13,7 @@ import (
 
 func TestSimple(t *testing.T) {
 	src := `
-	get_arg
-	get_arg
+	add
 	sub
 	ret
 	`
@@ -24,8 +23,7 @@ func TestSimple(t *testing.T) {
 	require.NoError(t, err)
 
 	parts := [][]byte{
-		opBin(code.OpGetArg),
-		opBin(code.OpGetArg),
+		opBin(code.OpAdd),
 		opBin(code.OpSub),
 		opBin(code.OpRet),
 	}