From 187bfeaeb559e8d17f63aef46deb1b2c28ee9829 Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Sun, 10 Apr 2022 14:42:53 +0200 Subject: Close #10: Support triple-dash horizontal lines --- test/clarktown/parsers/horizontal_line_block_test.clj | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/clarktown/parsers/horizontal_line_block_test.clj b/test/clarktown/parsers/horizontal_line_block_test.clj index 56601e2..21617b6 100644 --- a/test/clarktown/parsers/horizontal_line_block_test.clj +++ b/test/clarktown/parsers/horizontal_line_block_test.clj @@ -7,9 +7,15 @@ (deftest horizontal-line-block-test (testing "Creating a horizontal line" (is (= "
" - (horizontal-line-block/render "***" nil)))) + (horizontal-line-block/render "***" nil))) + + (is (= "
" + (horizontal-line-block/render "---" nil)))) (testing "Is a horizontal line block" (is (true? (horizontal-line-block/is? "***"))) (is (true? (horizontal-line-block/is? " ***"))) - (is (false? (horizontal-line-block/is? "Test *** 123"))))) \ No newline at end of file + (is (false? (horizontal-line-block/is? "Test *** 123"))) + (is (true? (horizontal-line-block/is? "---"))) + (is (true? (horizontal-line-block/is? " ---"))) + (is (false? (horizontal-line-block/is? "Test --- 123"))))) \ No newline at end of file -- cgit v1.2.3