diff options
| author | Asko Nomm <asko@bien.ee> | 2022-04-09 14:06:13 +0200 |
|---|---|---|
| committer | Asko Nomm <asko@bien.ee> | 2022-04-09 14:06:13 +0200 |
| commit | a7f9e4bc176cff30a008acc89bd4b3cb923a1919 (patch) | |
| tree | f12cb3baab09a7e5e4251fa993bacf04735a8a60 | |
| parent | aac78c214ea953e4d1fcd84943c867395bfc22ec (diff) | |
Add full test coverage for inline code (re #4)
| -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 |
