From 6fe6e6546c4801f850d943c699fccdd5dc6ea723 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 20 May 2022 20:28:17 +0200 Subject: Continuous VM stack implementation --- pkg/lang/vm/text/compiler_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pkg/lang/vm/text/compiler_test.go') 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), } -- cgit 1.4.1