Nitsmell : Adding new code smells and print console updated
[nit.git] / tests / TestNitsmells / LongParameterList / longparameterlist.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 # A test program with a fake model to check model tools.
16 module longparameterlist
17
18 import platform
19
20 class Starter
21 fun no_para do end
22
23 fun no_para2 do end
24 end
25
26 class Test
27 fun short_list_parameter(numbers : Int, para1 : Bool, para2 : Float, para3 : Int) do
28 var starter = new Starter
29 end
30
31 fun long_list_parameter(numbers : Int, para1 : Bool, para2 : Float, para3 : Int, para4 : Starter) do
32 var starter = new Starter
33 end
34
35 fun extra_long_list_parameter(numbers : Int, para1 : Bool, para2 : Float, para3 : Int, para4 : Starter,para5 : Int, para6 : Int) do
36 var starter = new Starter
37 end
38 end