diff --git a/engine/vm_test.go b/engine/vm_test.go index aeba7ec..285da4d 100644 --- a/engine/vm_test.go +++ b/engine/vm_test.go @@ -271,12 +271,19 @@ func TestVM_SetUserOutput(t *testing.T) { } func TestVM_SetMaxVariables(t *testing.T) { - t.Run("ok", func(t *testing.T) { + t.Run("limits", func(t *testing.T) { var vm VM vm.SetMaxVariables(10) assert.Equal(t, uint64(10), maxVariables) assert.Equal(t, uint64(10), vm.maxVariables) }) + + t.Run("no limit", func(t *testing.T) { + var vm VM + vm.SetMaxVariables(0) + assert.Equal(t, uint64(0), maxVariables) + assert.Equal(t, uint64(0), vm.maxVariables) + }) } func TestProcedureIndicator_Apply(t *testing.T) {