Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / test_keep_going.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 fun plop: Fail
16 do
17 print 1
18 end
19
20 1.output
21 if false then
22 plop
23 end
24 2.output
25 if false then
26 fail
27 end
28 3.output
29 if false then
30 var x = new Fail
31 x.output
32 end
33 4.output
34 if false then
35 if 1 then abort
36 end
37 5.output
38 if false then
39 abort
40 999.output
41 end
42 6.output
43 if false then
44 var a = new Sys.fail
45 a.output
46 end
47 7.output