Updated `tests/syntax_callref.nit`
[nit.git] / tests / test_nitunit4 / test_nitunit4_base.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 module test_nitunit4_base
16
17 class SuperTestSuite
18
19 var before = false
20
21 fun before_test is before do
22 print "Before Test"
23 before = true
24 end
25
26 fun after_test is after do
27 print "After Test"
28 assert before
29 end
30 end