tests: add test_nitunit_md.md to test nitdoc with markdown file
authorJean Privat <jean@pryen.org>
Sat, 14 Mar 2015 06:36:36 +0000 (13:36 +0700)
committerJean Privat <jean@pryen.org>
Wed, 18 Mar 2015 03:57:11 +0000 (10:57 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/nitunit.args
tests/sav/nitunit_args7.res [new file with mode: 0644]
tests/test_nitunit_md.md [new file with mode: 0644]

index 7d261e4..b3ac901 100644 (file)
@@ -4,3 +4,4 @@ test_nitunit.nit --gen-suite --only-show --private
 test_nitunit2.nit -o $WRITE
 test_doc2.nit --no-color -o $WRITE
 test_nitunit3 --no-color -o $WRITE
+test_nitunit_md.md --no-color -o $WRITE
diff --git a/tests/sav/nitunit_args7.res b/tests/sav/nitunit_args7.res
new file mode 100644 (file)
index 0000000..ea6bab2
--- /dev/null
@@ -0,0 +1,13 @@
+test_nitunit_md.md: ERROR: nitunit.<file>.test_nitunit_md.md (in .nitunit/file-0.nit): Runtime error: Assert failed (.nitunit/file-0.nit:8)
+
+DocUnits:
+Entities: 1; Documented ones: 1; With nitunits: 1; Failures: 1
+
+TestSuites:
+No test cases found
+Class suites: 0; Test Cases: 0; Failures: 0
+<testsuites><testsuite package="test_nitunit_md.md"><testcase classname="nitunit.&lt;file&gt;" name="test_nitunit_md.md"><system-err></system-err><system-out>var a = 1
+assert 1 == 1
+assert false
+</system-out><error message="Runtime error: Assert failed (.nitunit&#47;file-0.nit:8)
+"></error></testcase></testsuite></testsuites>
\ No newline at end of file
diff --git a/tests/test_nitunit_md.md b/tests/test_nitunit_md.md
new file mode 100644 (file)
index 0000000..5bcfa88
--- /dev/null
@@ -0,0 +1,15 @@
+# Test
+
+~~~
+var a = 1
+~~~
+
+~~~raw
+ignored
+~~~
+
+~~~
+assert 1 == 1
+~~~
+
+    assert false