mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-29 02:49:54 +00:00
50 lines
842 B
Plaintext
50 lines
842 B
Plaintext
NEW
|
||
PREFIX
|
||
AUTO 4,1
|
||
#!/BIN/SH
|
||
#
|
||
#
|
||
#
|
||
#!/BIN/SH
|
||
ECHO "\f IF String Tests"
|
||
ECHO "\nThis Performs Several String Comparison Tests\n"
|
||
ECHO -N " Test 1 ABC = ABC : "
|
||
IF [ "ABC" = "ABC" ]
|
||
echo PASSED
|
||
ELSE
|
||
echo FAILED
|
||
FI
|
||
ECHO -N " Test 2 ABC not DEF : "
|
||
IF [ "ABC" != "DEF" ]
|
||
echo PASSED
|
||
ELSE
|
||
echo FAILED
|
||
FI
|
||
ECHO -N " Test 3 ABC = ABCD : "
|
||
IF [ "ABC" = "ABCD" ]
|
||
echo FAILED
|
||
ELSE
|
||
echo PASSED
|
||
FI
|
||
ECHO -N " Test 4 ABC not ABC : "
|
||
IF [ "ABC" != "ABC" ]
|
||
echo FAILED
|
||
ELSE
|
||
echo PASSED
|
||
FI
|
||
ECHO -N " Test 5 -N Bad Var : "
|
||
IF [ -N $ABC ]
|
||
echo FAILED
|
||
ELSE
|
||
echo PASSED
|
||
FI
|
||
ECHO -N " Test 6 -Z Bad Var : "
|
||
IF [ -Z $ABC ]
|
||
echo PASSED
|
||
ELSE
|
||
echo FAILED
|
||
FI
|
||
ECHO "\n End of Test\n"
|
||
MAN
|
||
TEXT /MAKE/USR/SHARE/TESTS/IFSTRTEST
|