changeset 751:4101e755b3e7

farray.sh: extra tests for falist_find/farray_find in empty collections
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 10 Oct 2024 14:04:16 +0200
parents 464fc11180a0
children c1f6efbb8580
files tests/farray-alist.t tests/farray-array.t
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 ===
--- 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