From a7f9e4bc176cff30a008acc89bd4b3cb923a1919 Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Sat, 9 Apr 2022 14:06:13 +0200 Subject: Add full test coverage for inline code (re #4) --- test/clarktown/parsers/inline_code_test.clj | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/clarktown/parsers/inline_code_test.clj (limited to 'test/clarktown/parsers') 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 (= "This is inline 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 some inline 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 -- cgit v1.2.3