about summary refs log tree commit diff stats
path: root/tests/run.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.scm')
-rw-r--r--tests/run.scm21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/run.scm b/tests/run.scm index aa5dab1..1ec4ffe 100644 --- a/tests/run.scm +++ b/tests/run.scm
@@ -55,7 +55,26 @@ end-document
55;;; Tests 55;;; Tests
56 56
57(test "read" 57(test "read"
58 '((meta ("title" "a" "test" "document") ("date" "2024-05-13T03:02:45Z") ("uuid" "b3daebf1-440b-4828-a4d9-9089c7bd7c61")) (hdr1 ("a" "test" "document" "of" "some" "kind")) (para "here is a test document." "it has paragraphs" (link "example.com" "with" "links!") "and other things.") (hdr2 ("a" "code" "example")) (verb "for (a=1;a<=4;a++) {" "\tprintf(\"%d\\n\", a);" "}") (hdr3 ("other" "examples")) (quot ("a" "blockquote" "is" "a" "quote") ("that" "is" "blocky.")) (list ("list" "1") ("list" "2") ("list" "3")) (link ("example.com" "link" "list" "1") ("example.com" "link" "list" "2") ("example.com" "link" "list" "3")) (para "ok, now for another test:" "will *strong* in-line text be converted?" "as well as `code`, _emph_ and such?" "what if *i _nest_ them*" "what if *i _nest them* wrong_ ?" "what about *breaking them" "over two lines?*")) 58 '((meta ("title" "a" "test" "document")
59 ("date" "2024-05-13T03:02:45Z")
60 ("uuid" "b3daebf1-440b-4828-a4d9-9089c7bd7c61"))
61 (hdr1 ("a" "test" "document" "of" "some" "kind"))
62 (para "here is a test document." "it has paragraphs" (link "example.com"
63 "with"
64 "links!")
65 "and other things.")
66 (hdr2 ("a" "code" "example"))
67 (verb "for (a=1;a<=4;a++) {" "\tprintf(\"%d\\n\", a);" "}")
68 (hdr3 ("other" "examples"))
69 (quot ("a" "blockquote" "is" "a" "quote") ("that" "is" "blocky."))
70 (list ("list" "1") ("list" "2") ("list" "3"))
71 (link ("example.com" "link" "list" "1") ("example.com" "link" "list"
72 "2") ("example.com" "link"
73 "list" "3"))
74 (para "ok, now for another test:" "will *strong* in-line text be
75converted?" "as well as `code`, _emph_ and such?" "what if *i _nest_ them*"
76"what if *i _nest them* wrong_ ?" "what about *breaking them" "over two
77lines?*"))
59 (call-with-input-string test-doc parse)) 78 (call-with-input-string test-doc parse))
60 79
61(test-exit) 80(test-exit)