Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ac52924d
Commit
ac52924d
authored
Oct 23, 2012
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Add tests for LEQ comparison operator in "if" statements.
parent
e3b5b6fd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+20
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+31
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
ac52924d
...
@@ -675,6 +675,19 @@ if a LSS B (echo a LSS B) else echo NT4
...
@@ -675,6 +675,19 @@ if a LSS B (echo a LSS B) else echo NT4
if /I a LSS B echo a LSS B insensitive
if /I a LSS B echo a LSS B insensitive
if A LSS b echo A LSS b
if A LSS b echo A LSS b
if /I A LSS b echo A LSS b insensitive
if /I A LSS b echo A LSS b insensitive
for %%i in (%STR_PARMS%) do call :LEQtest %%i A
for %%i in (%STR_PARMS%) do call :LEQtest %%i B
for %%i in (%STR_PARMS%) do call :LEQtest %%i AB
for %%i in (%STR_PARMS%) do call :LEQtest %%i BA
for %%i in (%STR_PARMS%) do call :LEQtest %%i AA
if b LEQ B (echo b LEQ B) else echo NT4
if /I b LEQ B echo b LEQ B insensitive
if b LEQ A echo b LEQ A
if /I b LEQ A echo b LEQ A insensitive
if a LEQ B (echo a LEQ B) else echo NT4
if /I a LEQ B echo a LEQ B insensitive
if A LEQ b echo A LEQ b
if /I A LEQ b echo A LEQ b insensitive
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)
...
@@ -688,12 +701,19 @@ for %%i in (%INT_PARMS%) do call :LSStest %%i 0
...
@@ -688,12 +701,19 @@ for %%i in (%INT_PARMS%) do call :LSStest %%i 0
for %%i in (%INT_PARMS%) do call :LSStest %%i 1
for %%i in (%INT_PARMS%) do call :LSStest %%i 1
for %%i in (%INT_PARMS%) do call :LSStest %%i 10
for %%i in (%INT_PARMS%) do call :LSStest %%i 10
for %%i in (%INT_PARMS%) do call :LSStest %%i 9
for %%i in (%INT_PARMS%) do call :LSStest %%i 9
for %%i in (%INT_PARMS%) do call :LEQtest %%i 0
for %%i in (%INT_PARMS%) do call :LEQtest %%i 1
for %%i in (%INT_PARMS%) do call :LEQtest %%i 10
for %%i in (%INT_PARMS%) do call :LEQtest %%i 9
goto :endIfCompOpsSubroutines
goto :endIfCompOpsSubroutines
rem IF subroutines helpers
rem IF subroutines helpers
:LSStest
:LSStest
if %1 LSS %2 echo %1 LSS %2
if %1 LSS %2 echo %1 LSS %2
goto :eof
goto :eof
:LEQtest
if %1 LEQ %2 echo %1 LEQ %2
goto :eof
:endIfCompOpsSubroutines
:endIfCompOpsSubroutines
set STR_PARMS=
set STR_PARMS=
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
ac52924d
...
@@ -460,6 +460,27 @@ LSS string can be used as operand for LSS comparison
...
@@ -460,6 +460,27 @@ LSS string can be used as operand for LSS comparison
@todo_wine@a LSS B insensitive
@todo_wine@a LSS B insensitive
@todo_wine@A LSS b
@todo_wine@A LSS b
@todo_wine@A LSS b insensitive
@todo_wine@A LSS b insensitive
@todo_wine@A LEQ A
@todo_wine@A LEQ B
@todo_wine@B LEQ B
@todo_wine@AB LEQ B
@todo_wine@AA LEQ B
@todo_wine@A LEQ AB
@todo_wine@AB LEQ AB
@todo_wine@AA LEQ AB
@todo_wine@A LEQ BA
@todo_wine@B LEQ BA
@todo_wine@AB LEQ BA
@todo_wine@BA LEQ BA
@todo_wine@AA LEQ BA
@todo_wine@A LEQ AA
@todo_wine@AA LEQ AA
@todo_wine@b LEQ B@or_broken@NT4
@todo_wine@b LEQ B insensitive
@todo_wine@a LEQ B@or_broken@NT4
@todo_wine@a LEQ B insensitive
@todo_wine@A LEQ b
@todo_wine@A LEQ b insensitive
------ for numbers
------ for numbers
negative numbers handled
negative numbers handled
negative numbers handled
negative numbers handled
...
@@ -474,6 +495,16 @@ also in negative form
...
@@ -474,6 +495,16 @@ also in negative form
@todo_wine@9 LSS 10
@todo_wine@9 LSS 10
@todo_wine@0 LSS 9
@todo_wine@0 LSS 9
@todo_wine@1 LSS 9
@todo_wine@1 LSS 9
@todo_wine@0 LEQ 0
@todo_wine@0 LEQ 1
@todo_wine@1 LEQ 1
@todo_wine@0 LEQ 10
@todo_wine@1 LEQ 10
@todo_wine@10 LEQ 10
@todo_wine@9 LEQ 10
@todo_wine@0 LEQ 9
@todo_wine@1 LEQ 9
@todo_wine@9 LEQ 9
------------ Testing for ------------
------------ Testing for ------------
--- plain FOR
--- plain FOR
A
A
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment