summaryrefslogtreecommitdiff
path: root/tests/headings/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-17 01:35:29 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-11-22 18:52:21 +0300
commitd52c1fb406b1cef82c5f5a28fc1804d7d99a49d8 (patch)
tree89236d3dcdf6245c75d761fde09040d9d2a56480 /tests/headings/testscript
parentbe3dc4cee63da92cfa1fa44a0bf90ab11ec7aaca (diff)
Add support for build2 for tests and examples
Diffstat (limited to 'tests/headings/testscript')
-rw-r--r--tests/headings/testscript39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/headings/testscript b/tests/headings/testscript
new file mode 100644
index 0000000..0c31f99
--- /dev/null
+++ b/tests/headings/testscript
@@ -0,0 +1,39 @@
+# file : tests/headings/testscript
+# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
+# license : MIT; see accompanying LICENSE file
+
+test = $effect($cli.path)
+
+: 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