nitunit: fix code blocks in tests
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 30 May 2018 14:13:10 +0000 (10:13 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Tue, 7 Aug 2018 22:37:59 +0000 (18:37 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

tests/sav/nitunit_args1.res
tests/test_nitunit.nit

index 1d1d69c..f1851ee 100644 (file)
@@ -1,17 +1,17 @@
 ==== Docunits of module test_nitunit::test_nitunit | tests: 5
 [OK] test_nitunit::test_nitunit
 [KO] test_nitunit$X
-     test_nitunit.nit:21,7--22,0: Runtime error in nitunit.out/test_nitunit-2.nit with argument 0
+     test_nitunit.nit:23,7--24,0: Runtime error in nitunit.out/test_nitunit-2.nit with argument 0
      Output
        Runtime error: Assert failed (nitunit.out/test_nitunit-2.nit:5)
 
 [KO] test_nitunit$X$foo
-     test_nitunit.nit:24,8--25,0: Compilation error in nitunit.out/test_nitunit-3.nit
+     test_nitunit.nit:27,8--28,0: Compilation error in nitunit.out/test_nitunit-3.nit
      Output
        nitunit.out/test_nitunit-3.nit:5,8--27: Error: method or variable `undefined_identifier` unknown in `Sys`.
 
 [KO] test_nitunit$X$foo1
-     test_nitunit.nit:28,15: Syntax Error: unexpected operator '!'.
+     test_nitunit.nit:32,15: Syntax Error: unexpected operator '!'.
 [OK] test_nitunit$X$foo2
 
 ==== Test-suite of module test_test_nitunit::test_test_nitunit | tests: 3
index e3b3301..64bc744 100644 (file)
 # limitations under the License.
 
 # a 'success' unit test (pass)
+#
 #     assert true
 module test_nitunit
 # a 'error' unit test (do not pass)
+#
 #     assert false
 class X
        # a 'failure' unit test (does not compile)
+       #
        #     assert undefined_identifier
        fun foo do end
 
        # a 'failure' unit test (does not parse)
+       #
        #     assert !@#$%^&*()
        fun foo1(a, b: Int) do end