~skuzzymiglet/typeup-janet

5c6d751a833b160f09034cc8ebc8f63a8c790064 — skuzzymiglet 2 months ago 3fc554c main
add tests for multiline code and lists
1 files changed, 30 insertions(+), 1 deletions(-)

M test/test.janet
M test/test.janet => test/test.janet +30 -1
@@ 35,4 35,33 @@ lines
quote
*lines*
"""`] [[:blockquote ["quote" " " [:bold ["lines"]]]]]
              ])
              "multiline code" [`===
code
lines
===`] [[:multiline-code ["code\nlines\n"]]]
              "horizontal rule" ["---"] [[:break]]
              "1-line metadata" ["@{a = b}"] [[:set "a" "b"]]
              "multi-line metadata" [`@{
  a = b
  c = d
  }`] [[:set "a" "b"] [:set "c" "d"]]
              "unordered list" [`[
a
b
c
]`] [[:unordered-list [["a"] ["b"] ["c"]]]]
              "ordered list" [`{
a
b
c
}`] [[:ordered-list [["a"] ["b"] ["c"]]]]
              "styled unordered list" [`[
*a*
b
]`] [[:unordered-list [[[:bold ["a"]]] ["b"]]]]
             "empty list items"
             [`{
  a
  
  b
  }`] [[:ordered-list [["a"] ["b"]]]]])