Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison tests/farray-alist.t @ 726:23f6d2993fa2
farray.sh: Test the debug output and the destruction of complex objects.
BUGS: No formal ownership management is done yet.
It is planned to implement resource management with reference counting.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 06 Oct 2024 16:19:45 +0200 |
| parents | 3adb26525b19 |
| children | 858f4208d9cb |
comparison
equal
deleted
inserted
replaced
| 725:33293795caa6 | 726:23f6d2993fa2 |
|---|---|
| 426 ERROR: falist `_farr_KV\?\?:([a-f0-9]+)' not created properly: no object for token `\1' (re) | 426 ERROR: falist `_farr_KV\?\?:([a-f0-9]+)' not created properly: no object for token `\1' (re) |
| 427 [70] | 427 [70] |
| 428 $ LIST='' | 428 $ LIST='' |
| 429 $ _farr_destroy_object "$LIST" | 429 $ _farr_destroy_object "$LIST" |
| 430 $ check_no_alist_artifacts | 430 $ check_no_alist_artifacts |
| 431 | |
| 432 | |
| 433 Complex Debug | |
| 434 ============= | |
| 435 | |
| 436 $ falist_create LIST | |
| 437 $ falist_set LIST K1 V1 | |
| 438 $ falist_create ITEM1 K11 V11 K22 V22 | |
| 439 # This also transfers ownership | |
| 440 $ falist_set LIST K2 "$ITEM1" | |
| 441 $ falist_debug LIST | |
| 442 DEBUG: alist `LIST' has length 2 | |
| 443 DEBUG: `K1' -> `V1' | |
| 444 DEBUG: `K2': --> | |
| 445 DEBUG: alist with token `[a-f0-9]+' has length 2 (re) | |
| 446 DEBUG: `K11' -> `V11' | |
| 447 DEBUG: `K22' -> `V22' | |
| 448 $ falist_destroy LIST | |
| 449 $ check_no_alist_artifacts |
