diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-28 13:48:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-28 13:48:18 +0200 |
commit | eebdf078fcbd5b69e0ed70adcb3c6d1d0c50343e (patch) | |
tree | d475bdfe4e54104fb4769f80bd1aec34309ee012 /cli/tests/headings | |
parent | 2181ec73117f2e18cc622ead6256c8104b631214 (diff) |
Move runtime tests from cli-tests/ to cli/tests/
Diffstat (limited to 'cli/tests/headings')
-rw-r--r-- | cli/tests/headings/buildfile | 8 | ||||
-rw-r--r-- | cli/tests/headings/testscript | 36 |
2 files changed, 44 insertions, 0 deletions
diff --git a/cli/tests/headings/buildfile b/cli/tests/headings/buildfile new file mode 100644 index 0000000..aa665c7 --- /dev/null +++ b/cli/tests/headings/buildfile @@ -0,0 +1,8 @@ +# file : tests/headings/buildfile +# license : MIT; see accompanying LICENSE file + +import! [metadata] cli = cli%exe{cli} + +./: testscript $cli + +testscript{*}: test = $cli diff --git a/cli/tests/headings/testscript b/cli/tests/headings/testscript new file mode 100644 index 0000000..163ba5f --- /dev/null +++ b/cli/tests/headings/testscript @@ -0,0 +1,36 @@ +# file : tests/headings/testscript +# license : MIT; see accompanying LICENSE file + +: auto-headings +: +: Note that auto-headings break if we split into multiple doc strings. +: +cat <<EOI >=map.cli; +" +\h1|Heading 1| + +\h|Heading 1.1| + +\h2|Heading 1.1.1| + +\h|Heading 1.2| + +\h2|Heading 1.2.1| + +\h1|Heading 2| +" +EOI +$* --generate-html --stdout map.cli >>EOO + <h1>Heading 1</h1> + + <h2>Heading 1.1</h2> + + <h3>Heading 1.1.1</h3> + + <h2>Heading 1.2</h2> + + <h3>Heading 1.2.1</h3> + + <h1>Heading 2</h1> + +EOO |