From 3b4c206003448bcd7b5732830642c2b67808d339 Mon Sep 17 00:00:00 2001 From: ajet Date: Tue, 4 Nov 2025 17:21:52 -1000 Subject: [PATCH] generate empty lists --- list/list_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/list/list_test.go b/list/list_test.go index 8905233..9386cb0 100644 --- a/list/list_test.go +++ b/list/list_test.go @@ -44,7 +44,7 @@ func TestListRest(t *testing.T) { */ func intListGen() *rapid.Generator[IList] { - return rapid.Custom(func(t *rapid.T) IList { + return rapid.OneOf(rapid.Custom(func(t *rapid.T) IList { myList := Empty() t.Repeat(map[string]func(*rapid.T){ "conj": func(t *rapid.T) { @@ -52,7 +52,7 @@ func intListGen() *rapid.Generator[IList] { }, }) return myList - }) + }), rapid.Just(Empty())) } // generative tests