summaryrefslogtreecommitdiff
path: root/test/clarktown/parsers/code_block_test.clj
diff options
context:
space:
mode:
authorAsko Nomm <asko@bien.ee>2022-04-09 14:01:31 +0200
committerAsko Nomm <asko@bien.ee>2022-04-09 14:01:31 +0200
commitaac78c214ea953e4d1fcd84943c867395bfc22ec (patch)
treec97f855509700665e83af2ce914ffdddc7159ac2 /test/clarktown/parsers/code_block_test.clj
parent9f8f4fc36adef06458320d7bfdef01dbe41f52a1 (diff)
Add full test coverage for code blocks (re #4)
Diffstat (limited to 'test/clarktown/parsers/code_block_test.clj')
-rw-r--r--test/clarktown/parsers/code_block_test.clj8
1 files changed, 6 insertions, 2 deletions
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