From: Alexandre Terrasa Date: Wed, 30 May 2018 14:13:10 +0000 (-0400) Subject: nitunit: fix code blocks in tests X-Git-Url: http://nitlanguage.org nitunit: fix code blocks in tests Signed-off-by: Alexandre Terrasa --- diff --git a/tests/sav/nitunit_args1.res b/tests/sav/nitunit_args1.res index 1d1d69c..f1851ee 100644 --- a/tests/sav/nitunit_args1.res +++ b/tests/sav/nitunit_args1.res @@ -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 diff --git a/tests/test_nitunit.nit b/tests/test_nitunit.nit index e3b3301..64bc744 100644 --- a/tests/test_nitunit.nit +++ b/tests/test_nitunit.nit @@ -15,16 +15,20 @@ # 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