47 lines
894 B
Plaintext
47 lines
894 B
Plaintext
|
|
@pwd@>echo Tests for cmd's builtin commands@todo_space@
|
|
Tests for cmd's builtin commands
|
|
------------ Testing 'echo' --------------
|
|
word
|
|
'singlequotedword'
|
|
"doublequotedword"
|
|
at-echoed-word
|
|
"/?"
|
|
|
|
.
|
|
------------ Testing 'set' --------------
|
|
set "FOO=bar" should not include the quotes in the variable value
|
|
bar
|
|
------------ Testing variable expansion --------------
|
|
~dp0 should be directory containing batch file
|
|
@pwd@\
|
|
@pwd@\
|
|
CD value @pwd@@or_broken@CD value
|
|
%
|
|
P
|
|
P
|
|
S
|
|
P
|
|
PS
|
|
ERRORLEVEL
|
|
0
|
|
00
|
|
0ERRORLEVEL
|
|
0
|
|
0%
|
|
P0
|
|
0S
|
|
P0S
|
|
------------ Testing if/else --------------
|
|
if/else should work with blocks
|
|
if seems to work
|
|
else seems to work
|
|
Testing case sensitivity with and without /i option
|
|
if seems to default to case sensitivity
|
|
if /i seems to work
|
|
if /I seems to work
|
|
-----------Testing GOTO-----------
|
|
goto with no leading space worked
|
|
goto with a leading space worked
|
|
goto with a leading tab worked
|