Austin English : cmd: Add testcases for goto.

Alexandre Julliard julliard at winehq.org
Wed Mar 24 15:54:45 CDT 2010


Module: wine
Branch: master
Commit: 27717a51278e0cb5e90d590206404c1b36b0309f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=27717a51278e0cb5e90d590206404c1b36b0309f

Author: Austin English <austinenglish at gmail.com>
Date:   Tue Mar 23 22:45:49 2010 -0500

cmd: Add testcases for goto.

---

 programs/cmd/tests/test_builtins.cmd     |   11 +++++++++++
 programs/cmd/tests/test_builtins.cmd.exp |    4 ++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index bae19b8..d596c18 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -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
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index ad50358..306953b 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -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




More information about the wine-cvs mailing list