Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff tests/farray-object.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-object.t Tue Oct 22 11:48:39 2024 +0200 +++ b/tests/farray-object.t Wed Oct 23 01:00:33 2024 +0200 @@ -22,6 +22,11 @@ array (no-eol) $ falist_type ARRAY1 array (no-eol) + $ fobject_isref "$ARRAY1" + $ fobject_isref ARRAY1 + [1] + $ fobject_isref '' + [1] $ farray_create ITEM1 i11 i22 $ farray_append ARRAY1 "$ITEM1" $ farray_release ITEM1 @@ -60,6 +65,11 @@ alist (no-eol) $ farray_type LIST1 alist (no-eol) + $ fobject_isref "$LIST1" + $ fobject_isref LIST1 + [1] + $ fobject_isref '' + [1] $ falist_create ITEM1 k11 v11 k22 v22 k33 v33 k44 v44 $ falist_set LIST1 k2 "$ITEM1" $ falist_release ITEM1
