diff tests/farray-alist.t @ 719:b2757e72b517

farray.sh: The first preparations to allow arrays/alists as values in other arrays or alists
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 04 Oct 2024 23:18:10 +0200
parents 2502e077d5e9
children a97ec3f07bdb
line wrap: on
line diff
--- a/tests/farray-alist.t	Fri Oct 04 18:20:15 2024 +0200
+++ b/tests/farray-alist.t	Fri Oct 04 23:18:10 2024 +0200
@@ -404,3 +404,20 @@
   $ falist_isalist LIST
   $ falist_destroy LIST
   $ check_no_alist_artifacts
+
+
+Generic Destruction
+===================
+
+  $ falist_create LIST k1 v2
+  $ falist_debug LIST
+  DEBUG: alist `LIST' has length 1
+  DEBUG:     `k1' -> `v2'
+  $ _farr_destroy_object "$LIST"
+  $ check_no_alist_artifacts
+  $ (_farr_destroy_object "$LIST")
+  ERROR: falist with token value `_farr_KV\*_([a-f0-9]+)' not created properly: no object for token `\1' (re)
+  [1]
+  $ LIST=''
+  $ _farr_destroy_object "$LIST"
+  $ check_no_alist_artifacts