test: 10-if-test, 10-if-test-false, 10-if-bracket, 10-if-bracket-false.
This commit is contained in:
parent
ddc0f58896
commit
6cf9cf7d0f
4
check.sh
4
check.sh
|
@ -61,6 +61,10 @@ tests='
|
|||
10-if-else
|
||||
10-else-multiple
|
||||
10-if-elif
|
||||
10-if-test
|
||||
10-if-test-false
|
||||
10-if-bracket
|
||||
10-if-bracket-false
|
||||
10-if-redirect
|
||||
|
||||
11-for
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
if [ 0 = 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
|
@ -0,0 +1,4 @@
|
|||
if [ 1 = 1 ]; then
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
|
@ -0,0 +1,4 @@
|
|||
if test 0 = 1; then
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
|
@ -0,0 +1,4 @@
|
|||
if test 1 = 1; then
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
Loading…
Reference in New Issue