Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison tests/farray-alist.t @ 717:f4725ad5cd21
farray.sh: type tests for array and alist
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 04 Oct 2024 17:18:14 +0200 |
| parents | 36d953791e0c |
| children | 2502e077d5e9 |
comparison
equal
deleted
inserted
replaced
| 716:36d953791e0c | 717:f4725ad5cd21 |
|---|---|
| 371 $ (farray_append LIST value) | 371 $ (farray_append LIST value) |
| 372 ERROR: object `LIST' is not an array | 372 ERROR: object `LIST' is not an array |
| 373 [70] | 373 [70] |
| 374 $ falist_destroy LIST | 374 $ falist_destroy LIST |
| 375 $ check_no_alist_artifacts | 375 $ check_no_alist_artifacts |
| 376 | |
| 377 | |
| 378 Other Type Checks | |
| 379 ================= | |
| 380 | |
| 381 $ falist_type | |
| 382 unknown (no-eol) | |
| 383 $ falist_type __UNKNOWN_VARIABLE__ | |
| 384 unknown (no-eol) | |
| 385 $ testvar='foo' | |
| 386 $ falist_type testvar | |
| 387 value (no-eol) | |
| 388 $ testvar='' | |
| 389 $ falist_type testvar | |
| 390 null (no-eol) | |
| 391 $ falist_isalist testvar | |
| 392 [1] | |
| 393 $ falist_create LIST | |
| 394 $ falist_type LIST | |
| 395 alist (no-eol) | |
| 396 $ falist_isalist LIST | |
| 397 $ falist_destroy LIST | |
| 398 $ check_no_alist_artifacts |
