cmd: add testcases for goto (2/2)

Austin English austinenglish at gmail.com
Tue Mar 23 22:49:29 CDT 2010


Testcases for previous patch.

-- 
-Austin
-------------- next part --------------
From d2d98d3cd05428f87f45bcd06d82a3e6dc61509a Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Tue, 23 Mar 2010 22:45:49 -0500
Subject: [PATCH 2/2] 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
-- 
1.6.3.3


More information about the wine-patches mailing list