diff options
| author | Asko Nomm <asko@bien.ee> | 2022-04-09 14:01:31 +0200 |
|---|---|---|
| committer | Asko Nomm <asko@bien.ee> | 2022-04-09 14:01:31 +0200 |
| commit | aac78c214ea953e4d1fcd84943c867395bfc22ec (patch) | |
| tree | c97f855509700665e83af2ce914ffdddc7159ac2 /test | |
| parent | 9f8f4fc36adef06458320d7bfdef01dbe41f52a1 (diff) | |
Add full test coverage for code blocks (re #4)
Diffstat (limited to 'test')
| -rw-r--r-- | test/clarktown/parsers/code_block_test.clj | 8 |
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 |
