on master help sign in
Updated idrisdoc006 to be more throughly
commite19659426a5f0d1801b6dbd541ebcf6ec1999c72 authorPhilip Rasmussen <pjor@itu.dk> dateWed 30 Apr 2014, 16:37 (13 years ago) parent373d40c
5 files changed+16−17
idris.cabal+1 test/idrisdoc006/A.idr → test/idrisdoc006/A/fully/Qualified/NAME.idr+1−1 test/idrisdoc006/expected+5−5 test/idrisdoc006/package_a.ipkg+1−1 test/idrisdoc006/run+8−10
idris.cabal+1
@@ -339,6 +339,7 @@ Extra-source-files:
339339 test/idrisdoc005/*.ipkg
340340 test/idrisdoc006/run
341341 test/idrisdoc006/expected
342+ test/idrisdoc006/A/fully/Qualified/NAME.idr
342343 test/idrisdoc006/*.idr
343344 test/idrisdoc006/*.ipkg
344345 test/idrisdoc007/run
test/idrisdoc006/A.idr → test/idrisdoc006/A/fully/Qualified/NAME.idrrenamed+1−1
@@ -1,4 +1,4 @@
1−module A
1+module A.fully.Qualified.NAME
22
33||| This is another test
44data Test : Type where
test/idrisdoc006/expected+5−5
@@ -1,7 +1,7 @@
1−Type checking ./A.idr
1+Type checking ./A/fully/Qualified/NAME.idr
22IdrisDoc file written
33Type checking ./B.idr
4−A: Check
5−B: Check
6−A
7−B
4+A.fully.Qualified.NAME.html
5+B.html
6+A.fully.Qualified.NAME is in the index
7+B is in the index
test/idrisdoc006/package_a.ipkg+1−1
@@ -1,4 +1,4 @@
11package test_merge
22
3−modules = A
3+modules = A.fully.Qualified.NAME
44
test/idrisdoc006/run+8−10
@@ -1,19 +1,17 @@
11#!/usr/bin/env bash
2−# Tests that documentation properly is merged with existent
3−# Also tests that an IdrisDoc is written
2+# Tests that documentation properly is merged with existent.
43idris --mkdoc package_a.ipkg
54[ -f test_merge_doc/IdrisDoc ] && echo "IdrisDoc file written"
65idris --mkdoc package_b.ipkg
7−[ -f test_merge_doc/docs/A.html ] && echo "A: Check"
8−[ -f test_merge_doc/docs/B.html ] && echo "B: Check"
9−if grep -q "href\\=\"docs/A\\.html\"" test_merge_doc/index.html; then
10− echo A
6+ls -1p test_merge_doc/docs
7+if grep -q "href\\=\"docs/A.fully.Qualified.NAME\\.html\"" test_merge_doc/index.html; then
8+ echo A.fully.Qualified.NAME is in the index
119else
12− echo A is not in the index
10+ echo A.fully.Qualified.NAME is NOT in the index
1311fi
1412if grep -q "href\\=\"docs/B\\.html\"" test_merge_doc/index.html; then
15− echo B
13+ echo B is in the index
1614else
17− echo B is not in the index
15+ echo B is NOT in the index
1816fi
19−rm -rf *.ibc *_doc
17+rm -rf *.ibc *_doc A/fully/Qualified/NAME.ibc