about summary refs log tree commit diff
path: root/pkg/lang/vm/vm_test.go
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-07-19 02:27:19 +0200
committerMel <einebeere@gmail.com>2022-07-19 02:27:19 +0200
commitb6fa4bc82398b09307f2e6b75e27422d1d1ecb33 (patch)
treee5b7aec7eb7f72f1c2f55e4b2a78d331bd81485e /pkg/lang/vm/vm_test.go
parente06aeb7fa2fcb9046b8861ed3c23417555e823f5 (diff)
downloadjinx-b6fa4bc82398b09307f2e6b75e27422d1d1ecb33.tar.zst
jinx-b6fa4bc82398b09307f2e6b75e27422d1d1ecb33.zip
Implement stack hygiene
Diffstat (limited to 'pkg/lang/vm/vm_test.go')
-rw-r--r--pkg/lang/vm/vm_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/lang/vm/vm_test.go b/pkg/lang/vm/vm_test.go
index 7fe07dd..7e749a4 100644
--- a/pkg/lang/vm/vm_test.go
+++ b/pkg/lang/vm/vm_test.go
@@ -75,7 +75,7 @@ func TestFibonacci(t *testing.T) {
 	temp_arr_push
 
 	# Drop local 1, which was the length of the array, which we no longer need
-	drop
+	drop 1
 
 	get_local 0
 	temp_arr_len
@@ -391,8 +391,7 @@ func TestPrimes(t *testing.T) {
 		add
 		set_local 0
 
-		drop
-		drop
+		drop 2
 
 		jmp @main_loop
 	@end: