From d52c1fb406b1cef82c5f5a28fc1804d7d99a49d8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 17 Nov 2016 01:35:29 +0300 Subject: Add support for build2 for tests and examples --- tests/headings/testscript | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/headings/testscript (limited to 'tests/headings/testscript') 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 <>>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 +

Heading 1

+ +

Heading 1.1

+ +

Heading 1.1.1

+ +

Heading 1.2

+ +

Heading 1.2.1

+ +

Heading 2

+ +EOO -- cgit v1.1