mirror of
https://github.com/A2osX/A2osX.git
synced 2024-09-09 00:54:29 +00:00
45 lines
783 B
Plaintext
45 lines
783 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
|
||
# Check comparison to bogus var
|
||
ECHO -N " Test 5 Bad VAR = ABC : "
|
||
IF [ "$ABC" = "ABC" ]
|
||
echo FAILED
|
||
ELSE
|
||
echo PASSED
|
||
FI
|
||
ECHO "\n End of Test\n"
|
||
MAN
|
||
TEXT /MAKE/USR/SHARE/TESTS/IFSTRTEST
|