cmd/tests: Add tests for GTR comparison operator in "if" statements.
This commit is contained in:
parent
43f5471cba
commit
5888ad3537
|
@ -704,6 +704,11 @@ 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 AB
|
||||||
for %%i in (%STR_PARMS%) do call :GEQtest %%i BA
|
for %%i in (%STR_PARMS%) do call :GEQtest %%i BA
|
||||||
for %%i in (%STR_PARMS%) do call :GEQtest %%i AA
|
for %%i in (%STR_PARMS%) do call :GEQtest %%i AA
|
||||||
|
for %%i in (%STR_PARMS%) do call :GTRtest %%i A
|
||||||
|
for %%i in (%STR_PARMS%) do call :GTRtest %%i B
|
||||||
|
for %%i in (%STR_PARMS%) do call :GTRtest %%i AB
|
||||||
|
for %%i in (%STR_PARMS%) do call :GTRtest %%i BA
|
||||||
|
for %%i in (%STR_PARMS%) do call :GTRtest %%i AA
|
||||||
echo ------ for numbers
|
echo ------ for numbers
|
||||||
if -1 LSS 1 (echo negative numbers handled)
|
if -1 LSS 1 (echo negative numbers handled)
|
||||||
if not -1 LSS -10 (echo negative numbers handled)
|
if not -1 LSS -10 (echo negative numbers handled)
|
||||||
|
@ -737,6 +742,10 @@ 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 1
|
||||||
for %%i in (%INT_PARMS%) do call :GEQtest %%i 10
|
for %%i in (%INT_PARMS%) do call :GEQtest %%i 10
|
||||||
for %%i in (%INT_PARMS%) do call :GEQtest %%i 9
|
for %%i in (%INT_PARMS%) do call :GEQtest %%i 9
|
||||||
|
for %%i in (%INT_PARMS%) do call :GTRtest %%i 0
|
||||||
|
for %%i in (%INT_PARMS%) do call :GTRtest %%i 1
|
||||||
|
for %%i in (%INT_PARMS%) do call :GTRtest %%i 10
|
||||||
|
for %%i in (%INT_PARMS%) do call :GTRtest %%i 9
|
||||||
goto :endIfCompOpsSubroutines
|
goto :endIfCompOpsSubroutines
|
||||||
|
|
||||||
rem IF subroutines helpers
|
rem IF subroutines helpers
|
||||||
|
@ -755,6 +764,9 @@ goto :eof
|
||||||
:GEQtest
|
:GEQtest
|
||||||
if %1 GEQ %2 echo %1 GEQ %2
|
if %1 GEQ %2 echo %1 GEQ %2
|
||||||
goto :eof
|
goto :eof
|
||||||
|
:GTRtest
|
||||||
|
if %1 GTR %2 echo %1 GTR %2
|
||||||
|
goto :eof
|
||||||
|
|
||||||
:endIfCompOpsSubroutines
|
:endIfCompOpsSubroutines
|
||||||
set STR_PARMS=
|
set STR_PARMS=
|
||||||
|
|
|
@ -522,6 +522,16 @@ LSS string can be used as operand for LSS comparison
|
||||||
@todo_wine@AB GEQ AA
|
@todo_wine@AB GEQ AA
|
||||||
@todo_wine@BA GEQ AA
|
@todo_wine@BA GEQ AA
|
||||||
@todo_wine@AA GEQ AA
|
@todo_wine@AA GEQ AA
|
||||||
|
@todo_wine@B GTR A
|
||||||
|
@todo_wine@AB GTR A
|
||||||
|
@todo_wine@BA GTR A
|
||||||
|
@todo_wine@AA GTR A
|
||||||
|
@todo_wine@BA GTR B
|
||||||
|
@todo_wine@B GTR AB
|
||||||
|
@todo_wine@BA GTR AB
|
||||||
|
@todo_wine@B GTR AA
|
||||||
|
@todo_wine@AB GTR AA
|
||||||
|
@todo_wine@BA GTR AA
|
||||||
------ for numbers
|
------ for numbers
|
||||||
negative numbers handled
|
negative numbers handled
|
||||||
negative numbers handled
|
negative numbers handled
|
||||||
|
@ -576,6 +586,12 @@ also in negative form
|
||||||
@todo_wine@10 GEQ 10
|
@todo_wine@10 GEQ 10
|
||||||
@todo_wine@10 GEQ 9
|
@todo_wine@10 GEQ 9
|
||||||
@todo_wine@9 GEQ 9
|
@todo_wine@9 GEQ 9
|
||||||
|
@todo_wine@1 GTR 0
|
||||||
|
@todo_wine@10 GTR 0
|
||||||
|
@todo_wine@9 GTR 0
|
||||||
|
@todo_wine@10 GTR 1
|
||||||
|
@todo_wine@9 GTR 1
|
||||||
|
@todo_wine@10 GTR 9
|
||||||
------------ Testing for ------------
|
------------ Testing for ------------
|
||||||
--- plain FOR
|
--- plain FOR
|
||||||
A
|
A
|
||||||
|
|
Loading…
Reference in New Issue