diff tests/farray-alist.t @ 728:858f4208d9cb

farray.sh: Resource management by reference counting done
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 07 Oct 2024 12:36:18 +0200
parents 23f6d2993fa2
children 05a325c7d5c5
line wrap: on
line diff
--- a/tests/farray-alist.t	Sun Oct 06 17:23:09 2024 +0200
+++ b/tests/farray-alist.t	Mon Oct 07 12:36:18 2024 +0200
@@ -420,13 +420,13 @@
   $ falist_debug LIST
   DEBUG: alist `LIST' has length 1
   DEBUG:     `k1' -> `v2'
-  $ _farr_destroy_object "$LIST"
+  $ _farr_release_object "$LIST"
   $ check_no_alist_artifacts
-  $ (_farr_destroy_object "$LIST")
+  $ (_farr_release_object "$LIST")
   ERROR: falist `_farr_KV\?\?:([a-f0-9]+)' not created properly: no object for token `\1' (re)
-  [70]
+  [1]
   $ LIST=''
-  $ _farr_destroy_object "$LIST"
+  $ _farr_release_object "$LIST"
   $ check_no_alist_artifacts
 
 
@@ -436,8 +436,8 @@
   $ falist_create LIST
   $ falist_set LIST K1 V1
   $ falist_create ITEM1 K11 V11 K22 V22
-# This also transfers ownership
   $ falist_set LIST K2 "$ITEM1"
+  $ falist_destroy ITEM1
   $ falist_debug LIST
   DEBUG: alist `LIST' has length 2
   DEBUG:     `K1' -> `V1'