cmd: Add testcases for goto.

oldstable
Austin English 2010-03-23 22:45:49 -05:00 committed by Alexandre Julliard
parent e22f6aa6e3
commit 27717a5127
2 changed files with 15 additions and 0 deletions

View File

@ -59,3 +59,14 @@ if /i foo==FOO echo if /i seems to work
if /i not foo==FOO echo if /i seems to be broken
if /I foo==FOO echo if /I seems to work
if /I not foo==FOO echo if /I seems to be broken
echo -----------Testing GOTO-----------
if a==a goto dest1
:dest1
echo goto with no leading space worked
if b==b goto dest2
:dest2
echo goto with a leading space worked
if c==c goto dest3
:dest3
echo goto with a leading tab worked

View File

@ -40,3 +40,7 @@ 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