mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-05 10:04:48 +00:00
38 lines
646 B
Plaintext
38 lines
646 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 End of Test\n"
|
||
MAN
|
||
TEXT /MAKE/USR/SHARE/TESTS/IFSTRTEST
|