feat(tests): sh file for function testing
This commit is contained in:
parent
f31fca4204
commit
64e3fb26c3
1 changed files with 21 additions and 0 deletions
21
tests/func.sh
Normal file
21
tests/func.sh
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
func()
|
||||||
|
{
|
||||||
|
echo hello
|
||||||
|
}
|
||||||
|
|
||||||
|
arg_func()
|
||||||
|
{
|
||||||
|
echo first argument is "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
func_in_func()
|
||||||
|
{
|
||||||
|
func
|
||||||
|
}
|
||||||
|
|
||||||
|
func_one_line() { echo "this is on one line"; }
|
||||||
|
|
||||||
|
func
|
||||||
|
arg_func "HERE"
|
||||||
|
func_in_func
|
||||||
|
func_one_line
|
||||||
Loading…
Add table
Add a link
Reference in a new issue