mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 14:24:35 +08:00
bb344bbd8f
Replace the `show_ary` function with the `show` test utility function.
34 lines
654 B
Plaintext
34 lines
654 B
Plaintext
Testing -V
|
|
$foo count=1
|
|
$foo[1]=|local foo|
|
|
$bar count=5
|
|
$bar[1]=|one|
|
|
$bar[2]=|two 2|
|
|
$bar[3]=| |
|
|
$bar[4]=||
|
|
$bar[5]=|3|
|
|
$baz count=0
|
|
Testing -V with changed variables
|
|
$foo count=1
|
|
$foo[1]=|local foo|
|
|
$bar count=5
|
|
$bar[1]=|one|
|
|
$bar[2]=|two 2|
|
|
$bar[3]=| |
|
|
$bar[4]=||
|
|
$bar[5]=|3|
|
|
$baz count=0
|
|
Function name1 found
|
|
Function name2 not found as expected
|
|
Function name3 found
|
|
Function name4 not found as expected
|
|
Checking that the copied functions are identical other than the name
|
|
1c1
|
|
< function name1 --argument arg1 arg2
|
|
---
|
|
> function name1a --argument arg1 arg2
|
|
1c1
|
|
< function name3 --argument arg1 arg2
|
|
---
|
|
> function name3a --argument arg1 arg2
|