update NOTICE and LICENSE
[nit.git] / tests / base_int.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Copyright 2009 Jean Privat <jean@pryen.org>
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 import kernel
18
19 (-(1)).output
20 (2+3).output
21 (2-3).output
22 (2*3).output
23 (2/3).output
24 (2%3).output
25 '\n'.output
26
27 (3+2).output
28 (3-2).output
29 (3*2).output
30 (3/2).output
31 (3%2).output
32 '\n'.output
33
34 (not 1==2).output
35 (2==2).output
36 '\n'.output
37
38 (not 1 is 2).output
39 (2 is 2).output
40 '\n'.output
41
42 (not 1>2).output
43 (not 2>2).output
44 (3>2).output
45 '\n'.output
46
47 (not 1>=2).output
48 (2>=2).output
49 (3>=2).output
50 '\n'.output
51
52 (1<2).output
53 (not 2<2).output
54 (not 3<2).output
55 '\n'.output
56
57 (1<=2).output
58 (2<=2).output
59 (not 3<=2).output
60 '\n'.output
61
62 (not 1>=2).output
63 (2>=2).output
64 (3>=2).output
65 '\n'.output
66
67 (1<=>2).output
68 (2<=>2).output
69 (3<=>2).output
70 '\n'.output
71
72 1.succ.output
73 3.prec.output