[CMD_ROSTEST] Minor improvements for the echo-ed info of the builtins tests.
[reactos.git] / modules / rostests / win32 / cmd / test_builtins.cmd
index a61be8d..dd4e1af 100644 (file)
@@ -1,42 +1,48 @@
 @echo off
-echo ------------ Testing for1 ------------
-echo --- plain FOR with multiple lines
+
+echo ------------ Testing FOR loop ------------
+echo --- Multiple lines
 for %%i in (A
 B
 C) do echo %%i
-echo ------------ Testing for2 ------------
-echo --- plain FOR with lines and spaces
+
+echo --- Lines and spaces
 for %%i in (D
  E
  F) do echo %%i
-echo ------------ Testing for3 ------------
-echo --- plain FOR with multiple lines and commas
+
+echo --- Multiple lines and commas
 for %%i in (G,
 H,
 I
 ) do echo %%i
-echo ------------ Testing for4 ------------
-echo --- plain FOR with multiple lines and %%I
+
+echo --- Multiple lines and %%I
+:: The FOR-variable is case-sensitive
 for %%i in (J
  K
  L) do echo %%I
-echo ------------ Testing for5 ------------
-echo --- plain FOR with multiple lines and %%j
+
+echo --- Multiple lines and %%j
 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
+
+
+echo ---------- Testing AND operator ----------
+:: Test for TRUE condition - Should be displayed
+ver | find "Ver" > NUL && echo TRUE AND condition
+
+:: Test for FALSE condition - Should not display
+ver | find "1234" > NUL && echo FALSE AND condition
+
+echo ---------- Testing OR operator -----------
+:: Test for TRUE condition - Should not display
+ver | find "Ver" > NUL || echo TRUE OR condition
+
+:: Test for FALSE condition - Should be displayed
+ver | find "1234" > NUL || echo FALSE OR condition
+
+
+echo ------------- End of Testing -------------