comparison tests/farray-alist.t @ 739:dae85cddc47b

farray.sh: implement "falist_add()"
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 07 Oct 2024 23:39:01 +0200
parents 772e4999562b
children 6fcf7da87981
comparison
equal deleted inserted replaced
738:6420368517d5 739:dae85cddc47b
128 DEBUG: the items: 128 DEBUG: the items:
129 DEBUG: `K1' -> `V1' 129 DEBUG: `K1' -> `V1'
130 DEBUG: `K2' -> `V2 2' 130 DEBUG: `K2' -> `V2 2'
131 DEBUG: `K3' -> `" 111222333" \'444555 ' 131 DEBUG: `K3' -> `" 111222333" \'444555 '
132 DEBUG: `K4' -> `V4' 132 DEBUG: `K4' -> `V4'
133 $ falist_release LIST
134 $ check_no_alist_artifacts
135
136
137 Add
138 ===
139
140 $ falist_create LIST
141 $ falist_add LIST K1 'V 1'
142 $ falist_add LIST K2 'V 2'
143 $ falist_add LIST K3 $'" 111222333" \\\'444555666 ' # '
144 $ falist_debug LIST
145 DEBUG: alist `LIST' has length 3
146 DEBUG: the items:
147 DEBUG: `K1' -> `V 1'
148 DEBUG: `K2' -> `V 2'
149 DEBUG: `K3' -> `" 111222333" \'444555666 '
150 Yes: make a duplicate key
151 $ falist_add LIST K3 $'" 111222333" \\\'444555666 ' #
152 $ falist_debug LIST
153 DEBUG: alist `LIST' has length 4
154 DEBUG: the items:
155 DEBUG: `K1' -> `V 1'
156 DEBUG: `K2' -> `V 2'
157 DEBUG: `K3' -> `" 111222333" \'444555666 '
158 DEBUG: `K3' -> `" 111222333" \'444555666 '
133 $ falist_release LIST 159 $ falist_release LIST
134 $ check_no_alist_artifacts 160 $ check_no_alist_artifacts
135 161
136 162
137 Iteration 163 Iteration