comparison tests/farray-alist.t @ 612:c9ef2339618d

farray.sh: Implemented comparison (ordered and unordered) for alists
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 19 Sep 2024 18:29:57 +0200
parents c450fd0eaddb
children 17194ffe3638
comparison
equal deleted inserted replaced
611:dbd793238b94 612:c9ef2339618d
223 value 4 (no-eol) 223 value 4 (no-eol)
224 224
225 $ falist_destroy LIST 225 $ falist_destroy LIST
226 226
227 $ check_no_alist_artifacts 227 $ check_no_alist_artifacts
228
229
230 Compare
231 =======
232
233 $ falist_create LIST1
234 $ falist_set LIST1 K1 V1
235 $ falist_set LIST1 K2 V2
236
237 $ falist_create LIST2
238 $ falist_set LIST2 K2 V2
239 $ falist_set LIST2 K1 V1
240
241 $ falist_create LIST3
242 $ falist_set LIST3 K1 V1
243 $ falist_set LIST3 K2 V2
244
245 $ falist_create LIST4
246 $ falist_set LIST4 K1 V1
247 $ falist_set LIST4 K2 V2-4
248
249 $ falist_are_equal LIST1 LIST2
250 $ falist_are_equal LIST1 LIST4
251 [1]
252 $ falist_are_equal_with_order LIST1 LIST2
253 [1]
254 $ falist_are_equal_with_order LIST1 LIST3
255
256 $ falist_clear LIST2
257 $ falist_are_equal LIST1 LIST2
258 [1]
259
260 $ falist_clear LIST3
261 $ falist_are_equal_with_order LIST2 LIST3
262
263 $ falist_destroy LIST1
264 $ falist_destroy LIST2
265 $ falist_destroy LIST3
266 $ falist_destroy LIST4
267
268 $ check_no_alist_artifacts