Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison tests/farray-alist.t @ 728:858f4208d9cb
farray.sh: Resource management by reference counting done
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 07 Oct 2024 12:36:18 +0200 |
| parents | 23f6d2993fa2 |
| children | 05a325c7d5c5 |
comparison
equal
deleted
inserted
replaced
| 727:35c29e9919ba | 728:858f4208d9cb |
|---|---|
| 418 | 418 |
| 419 $ falist_create LIST k1 v2 | 419 $ falist_create LIST k1 v2 |
| 420 $ falist_debug LIST | 420 $ falist_debug LIST |
| 421 DEBUG: alist `LIST' has length 1 | 421 DEBUG: alist `LIST' has length 1 |
| 422 DEBUG: `k1' -> `v2' | 422 DEBUG: `k1' -> `v2' |
| 423 $ _farr_destroy_object "$LIST" | 423 $ _farr_release_object "$LIST" |
| 424 $ check_no_alist_artifacts | 424 $ check_no_alist_artifacts |
| 425 $ (_farr_destroy_object "$LIST") | 425 $ (_farr_release_object "$LIST") |
| 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 [1] |
| 428 $ LIST='' | 428 $ LIST='' |
| 429 $ _farr_destroy_object "$LIST" | 429 $ _farr_release_object "$LIST" |
| 430 $ check_no_alist_artifacts | 430 $ check_no_alist_artifacts |
| 431 | 431 |
| 432 | 432 |
| 433 Complex Debug | 433 Complex Debug |
| 434 ============= | 434 ============= |
| 435 | 435 |
| 436 $ falist_create LIST | 436 $ falist_create LIST |
| 437 $ falist_set LIST K1 V1 | 437 $ falist_set LIST K1 V1 |
| 438 $ falist_create ITEM1 K11 V11 K22 V22 | 438 $ falist_create ITEM1 K11 V11 K22 V22 |
| 439 # This also transfers ownership | |
| 440 $ falist_set LIST K2 "$ITEM1" | 439 $ falist_set LIST K2 "$ITEM1" |
| 440 $ falist_destroy ITEM1 | |
| 441 $ falist_debug LIST | 441 $ falist_debug LIST |
| 442 DEBUG: alist `LIST' has length 2 | 442 DEBUG: alist `LIST' has length 2 |
| 443 DEBUG: `K1' -> `V1' | 443 DEBUG: `K1' -> `V1' |
| 444 DEBUG: `K2': --> | 444 DEBUG: `K2': --> |
| 445 DEBUG: alist with token `[a-f0-9]+' has length 2 (re) | 445 DEBUG: alist with token `[a-f0-9]+' has length 2 (re) |
