diff tests/farray-alist.t @ 769:03350d2a2af6

farray.sh: Add public functions to check whether a given value refers to a object (array, alist). Implemented also "farray_isref()", "falist_isref()" and "fobject_isref()".
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 23 Oct 2024 01:00:33 +0200
parents 7ead30e3b2f9
children
line wrap: on
line diff
--- a/tests/farray-alist.t	Tue Oct 22 11:48:39 2024 +0200
+++ b/tests/farray-alist.t	Wed Oct 23 01:00:33 2024 +0200
@@ -921,6 +921,13 @@
   $ falist_type LIST
   alist (no-eol)
   $ falist_isalist LIST
+
+  $ falist_isref "$LIST"
+  $ falist_isref LIST
+  [1]
+  $ falist_isref ''
+  [1]
+
   $ falist_release LIST
   $ check_no_alist_artifacts