Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / base_eq_int4.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 import kernel
16
17 var i = 1
18 var b = true
19 var f = 1u8
20 var ni: nullable Int = 1
21 var nb: nullable Bool = true
22 var nf: nullable Byte = 1u8
23 var oi: nullable Object = 1
24 var ob: nullable Object = true
25 var of: nullable Object = 1u8
26
27
28 (i == i).output
29 (b == i).output
30 (f == i).output
31
32 '\n'.output
33
34 (i == ni).output
35 (b == ni).output
36 (f == ni).output
37
38 '\n'.output
39
40 (i == oi).output
41 (b == oi).output
42 (f == oi).output
43
44 '\n'.output
45 '\n'.output
46
47 (ni == i).output
48 (nb == i).output
49 (nf == i).output
50
51 '\n'.output
52
53 (ni == ni).output
54 (nb == ni).output
55 (nf == ni).output
56
57 '\n'.output
58
59 (ni == oi).output
60 (nb == oi).output
61 (nf == oi).output
62
63 '\n'.output
64 '\n'.output
65
66 (oi == i).output
67 (ob == i).output
68 (of == i).output
69
70 '\n'.output
71
72 (oi == ni).output
73 (ob == ni).output
74 (of == ni).output
75
76 '\n'.output
77
78 (oi == oi).output
79 (ob == oi).output
80 (of == oi).output
81
82 '\n'.output
83 '\n'.output
84 '\n'.output
85
86 (i == b).output
87 (b == b).output
88 (f == b).output
89
90 '\n'.output
91
92 (i == nb).output
93 (b == nb).output
94 (f == nb).output
95
96 '\n'.output
97
98 (i == ob).output
99 (b == ob).output
100 (f == ob).output
101
102 '\n'.output
103 '\n'.output
104
105 (ni == b).output
106 (nb == b).output
107 (nf == b).output
108
109 '\n'.output
110
111 (ni == nb).output
112 (nb == nb).output
113 (nf == nb).output
114
115 '\n'.output
116
117 (ni == ob).output
118 (nb == ob).output
119 (nf == ob).output
120
121 '\n'.output
122 '\n'.output
123
124 (oi == b).output
125 (ob == b).output
126 (of == b).output
127
128 '\n'.output
129
130 (oi == nb).output
131 (ob == nb).output
132 (of == nb).output
133
134 '\n'.output
135
136 (oi == ob).output
137 (ob == ob).output
138 (of == ob).output
139
140 '\n'.output
141 '\n'.output
142 '\n'.output
143
144 (i == f).output
145 (b == f).output
146 (f == f).output
147
148 '\n'.output
149
150 (i == nf).output
151 (b == nf).output
152 (f == nf).output
153
154 '\n'.output
155
156 (i == of).output
157 (b == of).output
158 (f == of).output
159
160 '\n'.output
161 '\n'.output
162
163 (ni == f).output
164 (nb == f).output
165 (nf == f).output
166
167 '\n'.output
168
169 (ni == nf).output
170 (nb == nf).output
171 (nf == nf).output
172
173 '\n'.output
174
175 (ni == of).output
176 (nb == of).output
177 (nf == of).output
178
179 '\n'.output
180 '\n'.output
181
182 (oi == f).output
183 (ob == f).output
184 (of == f).output
185
186 '\n'.output
187
188 (oi == nf).output
189 (ob == nf).output
190 (of == nf).output
191
192 '\n'.output
193
194 (oi == of).output
195 (ob == of).output
196 (of == of).output