mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
msi: Add some integer condition tests.
This commit is contained in:
parent
99fa40e2bf
commit
f5c72fd202
@ -381,9 +381,54 @@ static void test_condition(void)
|
||||
r = MsiEvaluateCondition(hpkg, "0 = 1");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "0 > 1");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "0 ~> 1");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "1 > 1");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "1 ~> 1");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "0 >= 1");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "0 ~>= 1");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "1 >= 1");
|
||||
ok( r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "1 ~>= 1");
|
||||
ok( r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "0 < 1");
|
||||
ok( r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "0 ~< 1");
|
||||
ok( r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "1 < 1");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "1 ~< 1");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "0 <= 1");
|
||||
ok( r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "0 ~<= 1");
|
||||
ok( r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "1 <= 1");
|
||||
ok( r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "1 ~<= 1");
|
||||
ok( r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "0 >=");
|
||||
ok( r == MSICONDITION_ERROR, "wrong return val\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user