Merge pull request #1889 from Doug-Lyons/find_regression_test

Add Regression test for "find" using BAT with Conditionals "&&" and "||"
This commit is contained in:
Doug Lyons 2019-09-01 16:03:16 -05:00 committed by Hermès BÉLUSCA - MAÏTO
parent b54a38b8c0
commit 79d67dc846
2 changed files with 22 additions and 0 deletions

View file

@ -26,5 +26,17 @@ for %%i in (M,
N,
O
) do echo %%j
echo ------------ Testing Amp-Amp ---------
echo --- test for something that is TRUE
ver | find "Ver" > NUL && Echo TRUE Amp-Amp
echo ------------ Testing Amp-Amp ---------
echo --- test for something that is FALSE
ver | find "1234" > NUL && Echo FALSE Amp-Amp
echo ------------ Testing Pipe-Pipe -------
echo --- test for something that is TRUE
ver | find "Ver" > NUL || Echo TRUE Pipe-Pipe
echo ------------ Testing Pipe-Pipe -------
echo --- test for something that is FALSE
ver | find "1234" > NUL || Echo FALSE Pipe-Pipe
echo ------------ End of Testing ------------
echo --- Testing ends here

View file

@ -23,5 +23,15 @@ I
%j
%j
%j
------------ Testing Amp-Amp ---------
--- test for something that is TRUE
TRUE Amp-Amp
------------ Testing Amp-Amp ---------
--- test for something that is FALSE
------------ Testing Pipe-Pipe -------
--- test for something that is TRUE
------------ Testing Pipe-Pipe -------
--- test for something that is FALSE
FALSE Pipe-Pipe
------------ End of Testing ------------
--- Testing ends here