Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ main = do
Simple.reprintSexpr Simple.a_sexpr
putStrLn "== Visualise megaparsec/prettyprinter PUP =="
Best.reprintSexpr Best.a_small_sexpr
Best.reprintSexpr Best.a_medium_sexpr
Best.reprintSexpr Best.a_sexpr
Hedgehog.defaultMain [Simple.tests, Best.tests]
6 changes: 6 additions & 0 deletions test/Test/Best.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module Test.Best
reprintSexpr,
a_small_sexpr,
a_sexpr,
a_medium_sexpr,
)
where

Expand Down Expand Up @@ -167,6 +168,11 @@ reprintSexpr str = do
a_small_sexpr :: Text
a_small_sexpr = "((abstr 57 :tag) \"this is nested\")"

a_medium_sexpr :: Text
a_medium_sexpr =
"((a-fun 57 :tag) \"a string\" (list 1 \"somewhat\" :long \"list of mixed types\"\
\ (list \"at least\" 3) (list \"but maybe\" :more)))"

-- Modified Emacs Lisp
a_sexpr :: Text
a_sexpr =
Expand Down