From aac78c214ea953e4d1fcd84943c867395bfc22ec Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Sat, 9 Apr 2022 14:01:31 +0200 Subject: Add full test coverage for code blocks (re #4) --- test/clarktown/parsers/code_block_test.clj | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/clarktown/parsers/code_block_test.clj') diff --git a/test/clarktown/parsers/code_block_test.clj b/test/clarktown/parsers/code_block_test.clj index 20b69aa..8b1113d 100644 --- a/test/clarktown/parsers/code_block_test.clj +++ b/test/clarktown/parsers/code_block_test.clj @@ -6,6 +6,10 @@ (deftest code-block-test - (testing "Code block" + (testing "Code block with language specification" (is (= (slurp (io/file (io/resource "test/parsers/code_block_result.html"))) - (code-block/render (slurp (io/file (io/resource "test/parsers/code_block.md"))) nil))))) \ No newline at end of file + (code-block/render (slurp (io/file (io/resource "test/parsers/code_block.md"))) nil)))) + + (testing "Code block with NO language specification" + (is (= (slurp (io/file (io/resource "test/parsers/code_block_no_language_result.html"))) + (code-block/render (slurp (io/file (io/resource "test/parsers/code_block_no_language.md"))) nil))))) \ No newline at end of file -- cgit v1.2.3