Add a testing suite for CMD based on CMD scripts.
[reactos.git] / rostests / win32 / cmd / script_testsuite / tests / if.cmd
1 ::
2 :: PROJECT: ReactOS CMD Testing Suite
3 :: LICENSE: GPL v2 or any later version
4 :: FILE: tests/if.cmd
5 :: PURPOSE: Tests for the "if" command
6 :: COPYRIGHT: Copyright 2005 Royce Mitchell III
7 :: Copyright 2008 Colin Finck <mail@colinfinck.de>
8 ::
9
10 :: Bugs in the if code
11 if not "=="=="==" call :_failed "if not "=="=="==""
12 if "=="=="==" call :_successful
13
14 if "1"=="2" (
15 call :_failed "if "1"=="2""
16 ) else (
17 call :_successful
18 )
19
20 if not "1"=="1" (
21 call :_failed "if "1"=="1""
22 ) else (
23 call :_successful
24 )
25
26 goto :EOF