diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-08-12 21:50:50 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-08-12 22:10:09 +0200 |
commit | 2bba3d3de5a8cefe233f274fa2d8a2ba69799760 (patch) | |
tree | bb82ac3a1df6d35e16986a71d70aee9df086d57b /tests | |
parent | 0442d895fd1910ccef47b263c41ef29c522eeb38 (diff) |
Make multiline steps not finish with spaces
Diffstat (limited to 'tests')
-rw-r--r-- | tests/parse.scm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/parse.scm b/tests/parse.scm index 8a6c87b..e004a1b 100644 --- a/tests/parse.scm +++ b/tests/parse.scm @@ -17,24 +17,29 @@ (test-group "Official" + (test "testBasicDirection" - '(recipe (metadata ()) ((step ("Add a bit of chilli ")))) + '(recipe (metadata ()) ((step ("Add a bit of chilli")))) (cook->list (parse-cook "Add a bit of chilli\n"))) + (test "testComments" '(recipe (metadata ()) ((comment " testing comments"))) (cook->list (parse-cook "-- testing comments\n"))) + (test "testCommentsAfterIngredients" '(recipe (metadata ()) ((step ((ingredient "thyme" (amount 2 "sprigs")) - " " (comment " testing comments") "and some text ")))) + " " (comment " testing comments") "and some text")))) (cook->list (parse-cook "@thyme{2%sprigs} -- testing comments\nand some text\n"))) + (test "testCommentsWithIngredients" '(recipe (metadata ()) ((comment " testing comments") - (step ((ingredient "thyme" (amount 2 "sprigs")) " ")))) + (step ((ingredient "thyme" (amount 2 "sprigs")))))) (cook->list (parse-cook "-- testing comments\n@thyme{2%sprigs}\n"))) + ;(test "testDirectionsWithDegrees" ; '() ; (cook->list (parse-cook "Heat oven up to 200°C\n"))) |