blob: 028c4b7d793901c95b537bc7383cfb20a6ddaae9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)))))
|