# HG changeset patch # User Franz Glasner # Date 1728561856 -7200 # Node ID 4101e755b3e7379ee243318967f46b120fd24d49 # Parent 464fc11180a0a1e834a1c0f1e81898d7e6531449 farray.sh: extra tests for falist_find/farray_find in empty collections diff -r 464fc11180a0 -r 4101e755b3e7 tests/farray-alist.t --- a/tests/farray-alist.t Thu Oct 10 13:31:14 2024 +0200 +++ b/tests/farray-alist.t Thu Oct 10 14:04:16 2024 +0200 @@ -150,6 +150,14 @@ $ falist_release LIST $ check_no_alist_artifacts +Special case empty list (because of start/stop extra indexes) + + $ falist_create LIST + $ falist_find _var LIST foo + [1] + $ falist_release LIST + $ check_no_alist_artifacts + Add === diff -r 464fc11180a0 -r 4101e755b3e7 tests/farray-array.t --- a/tests/farray-array.t Thu Oct 10 13:31:14 2024 +0200 +++ b/tests/farray-array.t Thu Oct 10 14:04:16 2024 +0200 @@ -873,6 +873,15 @@ Searching ========= +Special case empty array because of start/stop indexes + + $ farray_create TEST + $ farray_find _var TEST foo + [1] + $ farray_release TEST + $ check_no_array_artifacts + + $ farray_create TEST 0 1 2 '3 4 5' $'" 678" \\\'910 ' 11 $ farray_find _var TEST 0