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/renderers/indented_code_block_test.clj | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/clarktown/renderers/indented_code_block_test.clj (limited to 'test/clarktown/renderers') diff --git a/test/clarktown/renderers/indented_code_block_test.clj b/test/clarktown/renderers/indented_code_block_test.clj new file mode 100644 index 0000000..879284d --- /dev/null +++ b/test/clarktown/renderers/indented_code_block_test.clj @@ -0,0 +1,14 @@ +(ns clarktown.renderers.indented-code-block-test + (:require + [clojure.test :refer [deftest testing is]] + [clarktown.renderers.indented-code-block :as indented-code-block])) + + +(deftest indented-code-block-renderer-test + (testing "Creating a single-line code block" + (is (= "
code goes here
" + (indented-code-block/render " code goes here" nil nil)))) + + (testing "Creating a multi-line code block" + (is (= "
code goes here\nand here
" + (indented-code-block/render " code goes here\n and here" nil nil))))) \ No newline at end of file -- cgit v1.2.3