Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff tests/farray-alist.t @ 716:36d953791e0c
farray.sh: The token values are prepended by a type-specific prefix: can now easily determine whether it is an array or alist from the value in its name
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 04 Oct 2024 15:45:51 +0200 |
| parents | 57ee25cec0dd |
| children | f4725ad5cd21 |
line wrap: on
line diff
--- a/tests/farray-alist.t Thu Oct 03 21:16:57 2024 +0200 +++ b/tests/farray-alist.t Fri Oct 04 15:45:51 2024 +0200 @@ -32,7 +32,7 @@ $ falist_destroy LIST $ ( falist_destroy LIST ) - ERROR: falist `LIST' not created properly: token empty + ERROR: object `LIST' not created properly: token empty [1] $ check_no_alist_artifacts @@ -68,7 +68,7 @@ $ falist_destroy LIST $ falist_istrue LIST - ERROR: falist `LIST' not created properly: token empty + ERROR: object `LIST' not created properly: token empty [1] $ check_no_alist_artifacts @@ -114,7 +114,7 @@ $ falist_tryget _i LIST K [1] $ _var="$(falist_print_length NON_EXISTING_LIST)" - ERROR: falist `NON_EXISTING_LIST' not created properly: token empty + ERROR: object `NON_EXISTING_LIST' not created properly: token empty $ echo "${_var}" -1 @@ -166,7 +166,7 @@ $ falist_clear LIST $ falist_destroy LIST $ falist_destroy LIST - ERROR: falist `LIST' not created properly: token empty + ERROR: object `LIST' not created properly: token empty [1] $ check_no_alist_artifacts @@ -362,4 +362,14 @@ $ farray_destroy ITEMS $ check_no_alist_artifacts - $ check_no_array_artifacts + + +Cross Type Checks +================= + + $ falist_create LIST + $ (farray_append LIST value) + ERROR: object `LIST' is not an array + [70] + $ falist_destroy LIST + $ check_no_alist_artifacts
