=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: cmd/tests: Add tests for GEQ comparison operator in "if" statements.
Alexandre Julliard
julliard at winehq.org
Tue Oct 23 13:37:18 CDT 2012
Module: wine
Branch: master
Commit: 43f5471cbaadc4655a363da351712e24b88eb94e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=43f5471cbaadc4655a363da351712e24b88eb94e
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Tue Oct 23 03:10:27 2012 +0200
cmd/tests: Add tests for GEQ comparison operator in "if" statements.
---
programs/cmd/tests/test_builtins.cmd | 12 ++++++++++++
programs/cmd/tests/test_builtins.cmd.exp | 25 +++++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index e940b2d..b7e72ec 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -699,6 +699,11 @@ for %%i in (%STR_PARMS%) do call :NEQtest %%i B
for %%i in (%STR_PARMS%) do call :NEQtest %%i AB
for %%i in (%STR_PARMS%) do call :NEQtest %%i BA
for %%i in (%STR_PARMS%) do call :NEQtest %%i AA
+for %%i in (%STR_PARMS%) do call :GEQtest %%i A
+for %%i in (%STR_PARMS%) do call :GEQtest %%i B
+for %%i in (%STR_PARMS%) do call :GEQtest %%i AB
+for %%i in (%STR_PARMS%) do call :GEQtest %%i BA
+for %%i in (%STR_PARMS%) do call :GEQtest %%i AA
echo ------ for numbers
if -1 LSS 1 (echo negative numbers handled)
if not -1 LSS -10 (echo negative numbers handled)
@@ -728,6 +733,10 @@ for %%i in (%INT_PARMS%) do call :NEQtest %%i 0
for %%i in (%INT_PARMS%) do call :NEQtest %%i 1
for %%i in (%INT_PARMS%) do call :NEQtest %%i 10
for %%i in (%INT_PARMS%) do call :NEQtest %%i 9
+for %%i in (%INT_PARMS%) do call :GEQtest %%i 0
+for %%i in (%INT_PARMS%) do call :GEQtest %%i 1
+for %%i in (%INT_PARMS%) do call :GEQtest %%i 10
+for %%i in (%INT_PARMS%) do call :GEQtest %%i 9
goto :endIfCompOpsSubroutines
rem IF subroutines helpers
@@ -743,6 +752,9 @@ goto :eof
:NEQtest
if %1 NEQ %2 echo %1 NEQ %2
goto :eof
+:GEQtest
+if %1 GEQ %2 echo %1 GEQ %2
+goto :eof
:endIfCompOpsSubroutines
set STR_PARMS=
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index c04c775..81686ff 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -507,6 +507,21 @@ LSS string can be used as operand for LSS comparison
@todo_wine at B NEQ AA
@todo_wine at AB NEQ AA
@todo_wine at BA NEQ AA
+ at todo_wine@A GEQ A
+ at todo_wine@B GEQ A
+ at todo_wine@AB GEQ A
+ at todo_wine@BA GEQ A
+ at todo_wine@AA GEQ A
+ at todo_wine@B GEQ B
+ at todo_wine@BA GEQ B
+ at todo_wine@B GEQ AB
+ at todo_wine@AB GEQ AB
+ at todo_wine@BA GEQ AB
+ at todo_wine@BA GEQ BA
+ at todo_wine@B GEQ AA
+ at todo_wine@AB GEQ AA
+ at todo_wine@BA GEQ AA
+ at todo_wine@AA GEQ AA
------ for numbers
negative numbers handled
negative numbers handled
@@ -551,6 +566,16 @@ also in negative form
@todo_wine at 0 NEQ 9
@todo_wine at 1 NEQ 9
@todo_wine at 10 NEQ 9
+ at todo_wine@0 GEQ 0
+ at todo_wine@1 GEQ 0
+ at todo_wine@10 GEQ 0
+ at todo_wine@9 GEQ 0
+ at todo_wine@1 GEQ 1
+ at todo_wine@10 GEQ 1
+ at todo_wine@9 GEQ 1
+ at todo_wine@10 GEQ 10
+ at todo_wine@10 GEQ 9
+ at todo_wine@9 GEQ 9
------------ Testing for ------------
--- plain FOR
A
More information about the wine-cvs
mailing list