(ns clarktown.parsers.bold-test
(:require
[clojure.test :refer [deftest testing is]]
[clarktown.parsers.bold :as bold]))
(deftest bold-test
(testing "Creating bold text with two surrounding asterisk characters"
(is (= "This is bold."
(bold/render "**This is bold.**" nil))))
(testing "Creating bold text with two surrounding underscore characters"
(is (= "This is bold."
(bold/render "__This is bold.__" nil))))
(testing "Creating bold text with both underscores and asterisks mixed"
(is (= "Hi, my name is John, what is your name?"
(bold/render "Hi, my name is **John**, what is __your name?__" nil)))))