blob: 8f017150733af0dbebad7982ca4928a45cf1edae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
if ((0 == 0)) "ok" else "nok"
if ((1 == 0)) "nok" else "ok"
if ((0 == 1)) "nok" else "ok"
print "\n"
if ((0 != 0)) "nok" else "ok"
if ((1 != 0)) "ok" else "nok"
if ((0 != 1)) "ok" else "nok"
print "\n"
if ((0 == 0)) "ok" else "nok"
if ((1 == 0)) "nok" else "ok"
if ((0 == 1)) "nok" else "ok"
print "\n"
if ((0 < 1)) "ok" else "nok"
if ((1 < 0)) "nok" else "ok"
if ((1 < 1)) "nok" else "ok"
print "\n"
if ((0 <= 1)) "ok" else "nok"
if ((1 <= 0)) "nok" else "ok"
if ((1 <= 1)) "ok" else "nok"
print "\n"
if ((0 > 1)) "nok" else "ok"
if ((1 > 0)) "ok" else "nok"
if ((1 > 1)) "nok" else "ok"
print "\n"
if ((0 >= 1)) "nok" else "ok"
if ((1 >= 0)) "ok" else "nok"
if ((1 >= 1)) "ok" else "nok"
print "\n"
|