cmd/tests: Add tests for IF '==' operator.
This commit is contained in:
parent
220191abe1
commit
f35d52e20e
|
@ -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 not foo==FOO echo if /i seems to be broken
|
||||||
if /I foo==FOO echo if /I seems to work
|
if /I foo==FOO echo if /I seems to work
|
||||||
if /I not foo==FOO echo if /I seems to be broken
|
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@tab@1==1 echo doom
|
if@tab@1==1 echo doom
|
||||||
if @tab@1==1 echo doom
|
if @tab@1==1 echo doom
|
||||||
if 1==1 (echo doom) else@tab@echo quake
|
if 1==1 (echo doom) else@tab@echo quake
|
||||||
|
|
|
@ -387,6 +387,12 @@ Testing case sensitivity with and without /i option
|
||||||
if seems to default to case sensitivity
|
if seems to default to case sensitivity
|
||||||
if /i seems to work
|
if /i seems to work
|
||||||
if /I seems to work
|
if /I seems to work
|
||||||
|
Testing string comparisons
|
||||||
|
equal
|
||||||
|
@todo_wine@non equal
|
||||||
|
@todo_wine@non equal
|
||||||
|
equal
|
||||||
|
Testing tabs handling
|
||||||
doom
|
doom
|
||||||
doom
|
doom
|
||||||
doom
|
doom
|
||||||
|
|
Loading…
Reference in New Issue