Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff tests/farray-alist.t @ 730:8f1583faf9ea
farray.sh: Rename farray_destroy() to farray_release() and falist_destroy() to falist_release()
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 07 Oct 2024 12:57:29 +0200 |
| parents | 05a325c7d5c5 |
| children | 772e4999562b |
line wrap: on
line diff
--- a/tests/farray-alist.t Mon Oct 07 12:44:00 2024 +0200 +++ b/tests/farray-alist.t Mon Oct 07 12:57:29 2024 +0200 @@ -30,8 +30,8 @@ $ falist_debug LIST DEBUG: alist `LIST' has length 0 - $ falist_destroy LIST - $ ( falist_destroy LIST ) + $ falist_release LIST + $ ( falist_release LIST ) ERROR: object `LIST' not created properly: token empty [1] @@ -66,7 +66,7 @@ $ falist_print_length LIST 0 (no-eol) - $ falist_destroy LIST + $ falist_release LIST $ falist_istrue LIST ERROR: object `LIST' not created properly: token empty [1] @@ -126,7 +126,7 @@ DEBUG: `K2' -> `V2 2' DEBUG: `K3' -> `" 111222333" \'444555 ' DEBUG: `K4' -> `V4' - $ falist_destroy LIST + $ falist_release LIST $ check_no_alist_artifacts @@ -179,8 +179,8 @@ EACH: _farr_KV\[\?,\?\]:[a-f0-9]+ key `K3', value `" 111222333" \\'444555 ' at idx 3 (re) $ falist_clear LIST - $ falist_destroy LIST - $ falist_destroy LIST + $ falist_release LIST + $ falist_release LIST ERROR: object `LIST' not created properly: token empty [1] @@ -216,7 +216,7 @@ $ falist_tryget_item_at_index _k _v LIST -3 [1] - $ falist_destroy LIST + $ falist_release LIST $ check_no_alist_artifacts @@ -247,7 +247,7 @@ $ printf '%s' "$_var" value 4 (no-eol) - $ falist_destroy LIST + $ falist_release LIST $ check_no_alist_artifacts @@ -293,10 +293,10 @@ $ falist_clear LIST3 $ falist_are_equal_with_order LIST2 LIST3 - $ falist_destroy LIST1 - $ falist_destroy LIST2 - $ falist_destroy LIST3 - $ falist_destroy LIST4 + $ falist_release LIST1 + $ falist_release LIST2 + $ falist_release LIST3 + $ falist_release LIST4 $ check_no_alist_artifacts @@ -335,10 +335,10 @@ DEBUG: `Key 1' -> `Value 1' DEBUG: `Key 2' -> `Value 2 '' - $ falist_destroy ARR - $ falist_destroy UPDATE1 - $ falist_destroy UPDATE2 - $ falist_destroy EMPTY + $ falist_release ARR + $ falist_release UPDATE1 + $ falist_release UPDATE2 + $ falist_release EMPTY $ check_no_alist_artifacts @@ -371,10 +371,10 @@ DEBUG: 1: `Value 1' DEBUG: 2: `Value 2 '' - $ falist_destroy LIST - $ farray_destroy KEYS - $ farray_destroy VALUES - $ farray_destroy ITEMS + $ falist_release LIST + $ farray_release KEYS + $ farray_release VALUES + $ farray_release ITEMS $ check_no_alist_artifacts @@ -386,7 +386,7 @@ $ (farray_append LIST value) ERROR: object `LIST' is not an array [70] - $ falist_destroy LIST + $ falist_release LIST $ check_no_alist_artifacts @@ -409,7 +409,7 @@ $ falist_type LIST alist (no-eol) $ falist_isalist LIST - $ falist_destroy LIST + $ falist_release LIST $ check_no_alist_artifacts @@ -437,7 +437,7 @@ $ falist_set LIST K1 V1 $ falist_create ITEM1 K11 V11 K22 V22 $ falist_set LIST K2 "$ITEM1" - $ falist_destroy ITEM1 + $ falist_release ITEM1 $ falist_debug LIST DEBUG: alist `LIST' has length 2 DEBUG: `K1' -> `V1' @@ -445,5 +445,5 @@ DEBUG: alist with token `[a-f0-9]+' has length 2 (re) DEBUG: `K11' -> `V11' DEBUG: `K22' -> `V22' - $ falist_destroy LIST + $ falist_release LIST $ check_no_alist_artifacts
