From b97891cc45b9a087a372767e25aa36788bc979bf Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sun, 8 May 2022 12:23:35 +0300 Subject: Naming improvements, code block matcher test --- test/clarktown/matchers/fenced_code_block_test.clj | 10 ++++++++++ test/clarktown/matchers/quote_block_test.clj | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 test/clarktown/matchers/fenced_code_block_test.clj (limited to 'test/clarktown/matchers') diff --git a/test/clarktown/matchers/fenced_code_block_test.clj b/test/clarktown/matchers/fenced_code_block_test.clj new file mode 100644 index 0000000..5961c6d --- /dev/null +++ b/test/clarktown/matchers/fenced_code_block_test.clj @@ -0,0 +1,10 @@ +(ns clarktown.matchers.fenced-code-block-test + (:require + [clojure.test :refer [deftest testing is]] + [clarktown.matchers.fenced-code-block :as code-block])) + + +(deftest fenced-code-block-matcher-test + (testing "Checking a fenced code block" + (is (true? (code-block/match? "```\nblabla```"))) + (is (true? (code-block/match? "```language-spec\nblabla```"))))) diff --git a/test/clarktown/matchers/quote_block_test.clj b/test/clarktown/matchers/quote_block_test.clj index 05288d6..d4c9067 100644 --- a/test/clarktown/matchers/quote_block_test.clj +++ b/test/clarktown/matchers/quote_block_test.clj @@ -4,7 +4,7 @@ [clarktown.matchers.quote-block :as quote-block])) -(deftest quote-block-block-matcher-test +(deftest quote-block-matcher-test (testing "Checking a quote block" (is (true? (quote-block/match? "> Test"))) (is (true? (quote-block/match? " > Test"))) -- cgit v1.2.3