Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison tests/farray-alist.t @ 724:3adb26525b19
farray.sh: Changed token value prefix: replace the last underscore "_" by a colon ":"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 06 Oct 2024 05:45:29 +0200 |
| parents | a97ec3f07bdb |
| children | 23f6d2993fa2 |
comparison
equal
deleted
inserted
replaced
| 723:a97ec3f07bdb | 724:3adb26525b19 |
|---|---|
| 172 EACH: LIST key `K3', value `" 111222333" \'444555 ' at idx 3 | 172 EACH: LIST key `K3', value `" 111222333" \'444555 ' at idx 3 |
| 173 | 173 |
| 174 ITERATE (for each, by value) | 174 ITERATE (for each, by value) |
| 175 | 175 |
| 176 $ falist_for_each "$LIST" $'printf "EACH: %s key \\`%s\\\', value \\`%s\\\' at idx %d\\n"' # ` | 176 $ falist_for_each "$LIST" $'printf "EACH: %s key \\`%s\\\', value \\`%s\\\' at idx %d\\n"' # ` |
| 177 EACH: _farr_KV\?\?_[a-f0-9]+ key `K1', value `V1' at idx 1 (re) | 177 EACH: _farr_KV\?\?:[a-f0-9]+ key `K1', value `V1' at idx 1 (re) |
| 178 EACH: _farr_KV\?\?_[a-f0-9]+ key `K2', value `V2 2' at idx 2 (re) | 178 EACH: _farr_KV\?\?:[a-f0-9]+ key `K2', value `V2 2' at idx 2 (re) |
| 179 EACH: _farr_KV\?\?_[a-f0-9]+ key `K3', value `" 111222333" \\'444555 ' at idx 3 (re) | 179 EACH: _farr_KV\?\?:[a-f0-9]+ key `K3', value `" 111222333" \\'444555 ' at idx 3 (re) |
| 180 | 180 |
| 181 $ falist_clear LIST | 181 $ falist_clear LIST |
| 182 $ falist_destroy LIST | 182 $ falist_destroy LIST |
| 183 $ falist_destroy LIST | 183 $ falist_destroy LIST |
| 184 ERROR: object `LIST' not created properly: token empty | 184 ERROR: object `LIST' not created properly: token empty |
| 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_destroy_object "$LIST" |
| 424 $ check_no_alist_artifacts | 424 $ check_no_alist_artifacts |
| 425 $ (_farr_destroy_object "$LIST") | 425 $ (_farr_destroy_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 [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 |
