sh file to test loops
This commit is contained in:
parent
4289700e2e
commit
93f280f59d
1 changed files with 15 additions and 0 deletions
15
tests/loops.sh
Executable file
15
tests/loops.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
echo "starting tests"
|
||||||
|
|
||||||
|
while false;
|
||||||
|
do
|
||||||
|
echo "should NOT be printed"
|
||||||
|
done
|
||||||
|
|
||||||
|
a='yes'
|
||||||
|
while [ "$a" -eq "yes" ];
|
||||||
|
do
|
||||||
|
a="no"
|
||||||
|
echo "should be printed only once"
|
||||||
|
done;
|
||||||
|
|
||||||
|
echo "tests done"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue