mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
bb344bbd8f
Replace the `show_ary` function with the `show` test utility function.
33 lines
654 B
Text
33 lines
654 B
Text
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
|