comparison tests/farray-object.t @ 733:772e4999562b

farray.sh: Unified the output of farray_debug() and falist_debug()
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 07 Oct 2024 14:08:29 +0200
parents d92e7203a14d
children 7ead30e3b2f9
comparison
equal deleted inserted replaced
732:d92e7203a14d 733:772e4999562b
29 This also transfers ownership 29 This also transfers ownership
30 $ farray_append ARRAY1 "$LIST2" 30 $ farray_append ARRAY1 "$LIST2"
31 $ falist_release LIST2 31 $ falist_release LIST2
32 $ farray_debug ARRAY1 32 $ farray_debug ARRAY1
33 DEBUG: array `ARRAY1' has length 4 33 DEBUG: array `ARRAY1' has length 4
34 DEBUG: its contents: 34 DEBUG: the items:
35 DEBUG: 1: `i1' 35 DEBUG: 1: `i1'
36 DEBUG: 2: `i2' 36 DEBUG: 2: `i2'
37 DEBUG: 3: --> 37 DEBUG: 3: >>>
38 DEBUG: array with token `[a-f0-9]+' has length 2 (re) 38 DEBUG: array with token `[a-f0-9]+' has length 2 (re)
39 DEBUG: its contents: 39 DEBUG: the items:
40 DEBUG: 1: `i11' 40 DEBUG: 1: `i11'
41 DEBUG: 2: `i22' 41 DEBUG: 2: `i22'
42 DEBUG: 4: --> 42 DEBUG: 4: >>>
43 DEBUG: alist with token `[a-f0-9]+' has length 3 (re) 43 DEBUG: alist with token `[a-f0-9]+' has length 3 (re)
44 DEBUG: the items:
44 DEBUG: `k1' -> `v1' 45 DEBUG: `k1' -> `v1'
45 DEBUG: `k2' -> `v2' 46 DEBUG: `k2' -> `v2'
46 DEBUG: `k3' -> `v3' 47 DEBUG: `k3' -> `v3'
47 $ farray_release ARRAY1 48 $ farray_release ARRAY1
48 $ check_no_array_artifacts 49 $ check_no_array_artifacts
65 $ farray_create ARRAY2 a1 a2 a3 66 $ farray_create ARRAY2 a1 a2 a3
66 $ falist_set LIST1 k3 "$ARRAY2" 67 $ falist_set LIST1 k3 "$ARRAY2"
67 $ farray_release ARRAY2 68 $ farray_release ARRAY2
68 $ falist_debug LIST1 69 $ falist_debug LIST1
69 DEBUG: alist `LIST1' has length 3 70 DEBUG: alist `LIST1' has length 3
71 DEBUG: the items:
70 DEBUG: `k1' -> `v1' 72 DEBUG: `k1' -> `v1'
71 DEBUG: `k2': --> 73 DEBUG: `k2' -> >>>
72 DEBUG: alist with token `[a-f0-9]+' has length 4 (re) 74 DEBUG: alist with token `[a-f0-9]+' has length 4 (re)
75 DEBUG: the items:
73 DEBUG: `k11' -> `v11' 76 DEBUG: `k11' -> `v11'
74 DEBUG: `k22' -> `v22' 77 DEBUG: `k22' -> `v22'
75 DEBUG: `k33' -> `v33' 78 DEBUG: `k33' -> `v33'
76 DEBUG: `k44' -> `v44' 79 DEBUG: `k44' -> `v44'
77 DEBUG: `k3': --> 80 DEBUG: `k3' -> >>>
78 DEBUG: array with token `[a-f0-9]+' has length 3 (re) 81 DEBUG: array with token `[a-f0-9]+' has length 3 (re)
79 DEBUG: its contents: 82 DEBUG: the items:
80 DEBUG: 1: `a1' 83 DEBUG: 1: `a1'
81 DEBUG: 2: `a2' 84 DEBUG: 2: `a2'
82 DEBUG: 3: `a3' 85 DEBUG: 3: `a3'
83 86
84 $ falist_release LIST1 87 $ falist_release LIST1