babashka/test-resources/lib_tests/clarktown/parsers/inline_code_test.clj
Bob 1113037b51
add Clarktown lib tests (#1247)
* add lib tests for clarktown

* add clarktown to library list

* make code block test agnostic to line separator
2022-04-17 20:11:33 +02:00

14 lines
No EOL
605 B
Clojure

(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)))))