From 8fa41a15f184660ab5bda5f86d645ba9b2582389 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 16 Mar 2023 11:56:31 -0700 Subject: support indented heredocs, add new "Reader macros" manual section Signed-off-by: Sean Whitton --- tests/reader.lisp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/reader.lisp (limited to 'tests') diff --git a/tests/reader.lisp b/tests/reader.lisp new file mode 100644 index 0000000..a56c6c0 --- /dev/null +++ b/tests/reader.lisp @@ -0,0 +1,36 @@ +(in-package :consfigurator/tests) +(named-readtables:in-readtable :consfigurator) +(in-consfig "consfigurator/tests") + +(deftest read-heredoc.1 + #>EOF>yesEOF + "yes") + +(deftest read-heredoc.2 + #>>EOF>>yes + yesEOF + " yes") + +(deftest read-heredoc.3 + #>>EOF>> ; well +line 1 +EOF + "line 1 +") + +(deftest read-heredoc.4 + #>~EOF> blah + blah + EOF + "blah +blah +") + +(deftest read-heredoc.5 + #>>~EOF>> + line 1 + line 2 + EOF + "line 1 +line 2 +") -- cgit v1.2.3