From 720c5a33b6a49cf328fdd7611f49153cf8f60247 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 8 Apr 2020 14:51:57 +0300 Subject: Separate tests and examples into individual packages Also make cli module to be explicitly enabled via the config.cli configuration variable. --- tests/note/buildfile | 4 - tests/note/testscript | 199 -------------------------------------------------- 2 files changed, 203 deletions(-) delete mode 100644 tests/note/buildfile delete mode 100644 tests/note/testscript (limited to 'tests/note') diff --git a/tests/note/buildfile b/tests/note/buildfile deleted file mode 100644 index f1296d1..0000000 --- a/tests/note/buildfile +++ /dev/null @@ -1,4 +0,0 @@ -# file : tests/note/buildfile -# license : MIT; see accompanying LICENSE file - -./: testscript diff --git a/tests/note/testscript b/tests/note/testscript deleted file mode 100644 index 0646d79..0000000 --- a/tests/note/testscript +++ /dev/null @@ -1,199 +0,0 @@ -# file : tests/note/testscript -# license : MIT; see accompanying LICENSE file - -test = $effect($cli.path) - -: block-basics -: -cat <=test.cli; -" -Leading paragraph. - -\N|This is a note block one.| - -Interleaving paragraph that is quite long and therefore it may span many -lines in order to make text easy to read. - -\N|This is a note block two that is quite long and therefore it may span many -lines in order to make text easy to read.| - -Trailing paragraph. -" -EOI -$* --generate-html --stdout test.cli >>EOO; -

Leading paragraph.

- -
-

This is a note block one.

-
- -

Interleaving paragraph that is quite long and therefore it may span many - lines in order to make text easy to read.

- -
-

This is a note block two that is quite long and therefore it may span - many lines in order to make text easy to read.

-
- -

Trailing paragraph.

- -EOO - $* --generate-txt --stdout test.cli >>EOO -Leading paragraph. - -| This is a note block one. - -Interleaving paragraph that is quite long and therefore it may span many lines -in order to make text easy to read. - -| This is a note block two that is quite long and therefore it may span many -| lines in order to make text easy to read. - -Trailing paragraph. -EOO - - -: block-multi-para -: -cat <=test.cli; -" -\N| -This is a note para one that is quite long and therefore it may span many -lines in order to make text easy to read. - -This is a note para two. -| -" -EOI -$* --generate-html --stdout test.cli >>EOO; -
-

This is a note para one that is quite long and therefore it may span many - lines in order to make text easy to read.

- -

This is a note para two.

-
- -EOO -$* --generate-txt --stdout test.cli >>EOO -| This is a note para one that is quite long and therefore it may span many -| lines in order to make text easy to read. -| -| This is a note para two. -EOO - -: block-pre -: -cat <=test.cli; -" - -\N| -This is a note para one. - -\ -And this is a -pre-formatter text fragment. -\ - -| -" -EOI -$* --generate-html --stdout test.cli >>EOO; -
-

This is a note para one.

- -
And this is a
-pre-formatter text fragment.
-
- -EOO -$* --generate-txt --stdout test.cli >>EOO -| This is a note para one. -| -| And this is a -| pre-formatter text fragment. -EOO - -# This is not yet supported (see txt_wrap_lines()). -# -#\ -: block-list -: -cat <=test.cli; -" -\N|This is a note para one followed by a list. - -\ul| - -\li|This is a list item that is quite long and therefore it may span many -lines in order to make text easy to read.||| -" -EOI -$* --generate-html --stdout test.cli >>EOO; -EOO -$* --generate-txt --stdout test.cli >>EOO -EOO -#\ - -: block-in-list -: -cat <=test.cli; -" -\ul| - -\li|Normal text para. - -\N|This is a note para one that is quite long and therefore it may span many -lines in order to make text easy to read.||| -" -EOI -$* --generate-html --stdout test.cli >>EOO; -
    -
  • Normal text para. - -
    -

    This is a note para one that is quite long and therefore it may span many - lines in order to make text easy to read.

    -
  • -
- -EOO -$* --generate-txt --stdout test.cli >>EOO -* Normal text para. - - | This is a note para one that is quite long and therefore it may span many - | lines in order to make text easy to read. -EOO - - -: span-basics -: -cat <=test.cli; -" -This is normal text. \N{This is a note.} And this is normal text again. -" -EOI -$* --generate-html --stdout test.cli >>EOO; -

This is normal text. This is a note. And this - is normal text again.

- -EOO - $* --generate-txt --stdout test.cli >>EOO -This is normal text. [Note: This is a note.] And this is normal text again. -EOO - - -: span-nested-link -: -cat <=test.cli; -" -\N{This is a note with a \l{https://example.com link} inside.} -" -EOI -$* --generate-html --stdout test.cli >>EOO; -

This is a note with a link inside.

- -EOO -$* --generate-txt --stdout test.cli >>EOO -[Note: This is a note with a link (https://example.com) inside.] -EOO -- cgit v1.1