Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl.test/tests/Comparison.sl @ 13821:b16ec83edc73
Documentation and more refactoring of Simple Language
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Wed, 29 Jan 2014 20:45:43 -0800 |
parents | e34d5cca7496 |
children |
comparison
equal
deleted
inserted
replaced
13820:20e7727588e8 | 13821:b16ec83edc73 |
---|---|
1 function main() { | 1 function main() { |
2 print(4 < 20); | 2 println("<"); |
3 print(4 < "20"); | 3 println(4 < 20); |
4 print("4" < 20); | 4 println(40 < 2); |
5 print("4" < "20"); | 5 println(4 < 4); |
6 print(4 < 20000000000000); | 6 println(4 < 200000000000000000000000000); |
7 print(4000000000000 < 20); | 7 println(40000000000000000000000000 < 20); |
8 print(4000000000000 < 20000000000000); | 8 println(40000000000000000000000000 < 200000000000000000000000000); |
9 println(400000000000000000000000000 < 20000000000000000000000000); | |
10 println(40000000000000000000000000 < 40000000000000000000000000); | |
11 | |
12 println("<="); | |
13 println(4 <= 20); | |
14 println(40 <= 2); | |
15 println(4 <= 4); | |
16 println(4 <= 200000000000000000000000000); | |
17 println(40000000000000000000000000 <= 20); | |
18 println(40000000000000000000000000 <= 200000000000000000000000000); | |
19 println(400000000000000000000000000 <= 20000000000000000000000000); | |
20 println(40000000000000000000000000 <= 40000000000000000000000000); | |
21 | |
22 println(">"); | |
23 println(4 > 20); | |
24 println(40 > 2); | |
25 println(4 > 4); | |
26 println(4 > 200000000000000000000000000); | |
27 println(40000000000000000000000000 > 20); | |
28 println(40000000000000000000000000 > 200000000000000000000000000); | |
29 println(400000000000000000000000000 > 20000000000000000000000000); | |
30 println(40000000000000000000000000 > 40000000000000000000000000); | |
31 | |
32 println(">="); | |
33 println(4 >= 20); | |
34 println(40 >= 2); | |
35 println(4 >= 4); | |
36 println(4 >= 200000000000000000000000000); | |
37 println(40000000000000000000000000 >= 20); | |
38 println(40000000000000000000000000 >= 200000000000000000000000000); | |
39 println(400000000000000000000000000 >= 20000000000000000000000000); | |
40 println(40000000000000000000000000 >= 40000000000000000000000000); | |
41 | |
42 println("=="); | |
43 println(4 == 20); | |
44 println(40 == 2); | |
45 println(4 == 4); | |
46 println(4 == 200000000000000000000000000); | |
47 println(40000000000000000000000000 == 20); | |
48 println(40000000000000000000000000 == 200000000000000000000000000); | |
49 println(400000000000000000000000000 == 20000000000000000000000000); | |
50 println(40000000000000000000000000 == 40000000000000000000000000); | |
51 | |
52 println("!="); | |
53 println(4 != 20); | |
54 println(40 != 2); | |
55 println(4 != 4); | |
56 println(4 != 200000000000000000000000000); | |
57 println(40000000000000000000000000 != 20); | |
58 println(40000000000000000000000000 != 200000000000000000000000000); | |
59 println(400000000000000000000000000 != 20000000000000000000000000); | |
60 println(40000000000000000000000000 != 40000000000000000000000000); | |
9 } | 61 } |