From dc2a364db6d14d4afa9da9aadbccb8fdbb038fe4 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Thu, 12 May 2022 21:07:14 +0300 Subject: Add tests --- test/clarktown/matchers/indented_code_block_test.clj | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/clarktown/matchers/indented_code_block_test.clj (limited to 'test/clarktown/matchers/indented_code_block_test.clj') diff --git a/test/clarktown/matchers/indented_code_block_test.clj b/test/clarktown/matchers/indented_code_block_test.clj new file mode 100644 index 0000000..beffcaa --- /dev/null +++ b/test/clarktown/matchers/indented_code_block_test.clj @@ -0,0 +1,13 @@ +(ns clarktown.matchers.indented-code-block-test + (:require + [clojure.test :refer [deftest testing is]] + [clarktown.matchers.indented-code-block :as code-block])) + + +(deftest indented-code-block-matcher-test + (testing "Checking a indented code block" + (is (true? (code-block/match? " blabla"))) + (is (true? (code-block/match? " abc\n dfg\n blabla"))) + (is (false? (code-block/match? " abc\n asdasd"))))) + + -- cgit v1.2.3