diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/clarktown/parsers/inline_code_test.clj | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/clarktown/parsers/inline_code_test.clj b/test/clarktown/parsers/inline_code_test.clj new file mode 100644 index 0000000..028c4b7 --- /dev/null +++ b/test/clarktown/parsers/inline_code_test.clj @@ -0,0 +1,14 @@ +(ns clarktown.parsers.inline-code-test + (:require + [clojure.test :refer [deftest testing is]] + [clarktown.parsers.inline-code :as inline-code])) + + +(deftest inline-code-test + (testing "Creating inline code text" + (is (= "<code>This is inline code.</code>" + (inline-code/render "`This is inline code.`" nil)))) + + (testing "Creating inline-code text in the middle of regular text" + (is (= "This is regular text, mixed with <code>some inline code.</code>, and it's great." + (inline-code/render "This is regular text, mixed with `some inline code.`, and it's great." nil)))))
\ No newline at end of file |
