Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c5faceab
Commit
c5faceab
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 mixed number/stringified numbers comparisons in "if" statements.
parent
5888ad35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+19
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+17
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
c5faceab
...
...
@@ -746,6 +746,25 @@ 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
echo ------ for numbers and stringified numbers
if not "1" EQU 1 (echo strings and integers not equal) else echo foo
if not 1 EQU "1" (echo strings and integers not equal) else echo foo
if '1' EQU 1 echo '1' EQU 1
if 1 EQU '1' echo 1 EQU '1'
if not "1" GEQ 1 (echo foo) else echo bar
if "10" GEQ "1" echo "10" GEQ "1"
if '1' GEQ 1 (echo '1' GEQ 1) else echo NT4
if 1 GEQ "1" echo 1 GEQ "1"
if "1" GEQ "1" echo "1" GEQ "1"
if '1' GEQ "1" echo '1' GEQ "1"
if "10" GEQ "1" echo "10" GEQ "1"
if not 1 GEQ '1' (echo non NT4) else echo 1 GEQ '1'
for %%i in ("1" '1') do call :GEQtest %%i '1'
if "10" GEQ '1' (echo "10" GEQ '1') else echo foo
if 1 GEQ "10" (echo 1 GEQ "10") else echo foo
if "1" GEQ "10" (echo 1 GEQ "10") else echo foo
if '1' GEQ "10" (echo '1' GEQ "10") else echo foo
if "10" GEQ "10" (echo "10" GEQ "10")
goto :endIfCompOpsSubroutines
rem IF subroutines helpers
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
c5faceab
...
...
@@ -592,6 +592,23 @@ also in negative form
@todo_wine@10 GTR 1
@todo_wine@9 GTR 1
@todo_wine@10 GTR 9
------ for numbers and stringified numbers
strings and integers not equal
strings and integers not equal
foo
@todo_wine@"10" GEQ "1"
@todo_wine@'1' GEQ 1@or_broken@NT4
@todo_wine@1 GEQ "1"
@todo_wine@"1" GEQ "1"
@todo_wine@'1' GEQ "1"
@todo_wine@"10" GEQ "1"
@todo_wine@non NT4@or_broken@1 GEQ '1'
@todo_wine@'1' GEQ '1'
@todo_wine@foo
@todo_wine@1 GEQ "10"
@todo_wine@foo
@todo_wine@'1' GEQ "10"
@todo_wine@"10" GEQ "10"
------------ Testing for ------------
--- plain FOR
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