=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: cmd/tests: Add tests for IF '= =' operator.

Alexandre Julliard julliard at winehq.org
Mon Sep 5 13:26:22 CDT 2011


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Sun Sep  4 16:33:29 2011 +0200

cmd/tests: Add tests for IF '==' operator.

---

 programs/cmd/tests/test_builtins.cmd     |    6 ++++++
 programs/cmd/tests/test_builtins.cmd.exp |    6 ++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index 5bd375e..9a5f786 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -576,6 +576,12 @@ 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 string comparisons
+if abc == abc  (echo equal) else echo non equal
+if abc =="abc" (echo equal) else echo non equal
+if "abc"== abc (echo equal) else echo non equal
+if "abc"== "abc" (echo equal) else echo non equal
+echo Testing tabs handling
 if at tab@1==1 echo doom
 if @tab at 1==1 echo doom
 if 1==1 (echo doom) else at tab@echo quake
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index c67b10f..514a635 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -387,6 +387,12 @@ 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 string comparisons
+equal
+ at todo_wine@non equal
+ at todo_wine@non equal
+equal
+Testing tabs handling
 doom
 doom
 doom




More information about the wine-cvs mailing list