summaryrefslogtreecommitdiff
path: root/test/clarktown
diff options
context:
space:
mode:
Diffstat (limited to 'test/clarktown')
-rw-r--r--test/clarktown/core_test.clj9
-rw-r--r--test/clarktown/parsers/code_block_test.clj9
2 files changed, 12 insertions, 6 deletions
diff --git a/test/clarktown/core_test.clj b/test/clarktown/core_test.clj
index 8425a76..da252c7 100644
--- a/test/clarktown/core_test.clj
+++ b/test/clarktown/core_test.clj
@@ -1,7 +1,4 @@
(ns clarktown.core-test
- (:require [clojure.test :refer :all]
- [clarktown.core :refer :all]))
-
-(deftest a-test
- (testing "FIXME, I fail."
- (is (= 0 1))))
+ (:require
+ [clojure.test :refer :all]
+ [clarktown.core :refer :all])) \ No newline at end of file
diff --git a/test/clarktown/parsers/code_block_test.clj b/test/clarktown/parsers/code_block_test.clj
new file mode 100644
index 0000000..1bd51b2
--- /dev/null
+++ b/test/clarktown/parsers/code_block_test.clj
@@ -0,0 +1,9 @@
+(ns clarktown.parsers.code-block-test
+ (:require [clojure.test :refer [deftest testing is]]
+ [clarktown.parsers.code-block :as code-block]))
+
+
+(deftest code-block-test
+ (testing "Code block"
+ (is (= (slurp "./resources/test/parsers/code_block_result.html")
+ (code-block/render (slurp "./resources/test/parsers/code_block.md") nil))))) \ No newline at end of file