about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-09 21:30:27 +0100
committerAlan Pearce2014-09-09 21:30:27 +0100
commitfc18e6363dcb0befca0088a66284b05979ee3036 (patch)
treeee6fd5ce02fd7cfd7c3ca80fdb9534925909c924 /test
parent811dd1cb92a7248f16c66659c11ffd78fea3e2f6 (diff)
downloadmicroformats-fc18e6363dcb0befca0088a66284b05979ee3036.tar.lz
microformats-fc18e6363dcb0befca0088a66284b05979ee3036.tar.zst
microformats-fc18e6363dcb0befca0088a66284b05979ee3036.zip
Create initial test and implementation
Diffstat (limited to 'test')
-rw-r--r--test/microformats/core_test.clj7
-rw-r--r--test/microformats/parser_test.clj8
2 files changed, 8 insertions, 7 deletions
diff --git a/test/microformats/core_test.clj b/test/microformats/core_test.clj
deleted file mode 100644
index ff74349..0000000
--- a/test/microformats/core_test.clj
+++ /dev/null
@@ -1,7 +0,0 @@
-(ns microformats.core-test
-  (:require [clojure.test :refer :all]
-            [microformats.core :refer :all]))
-
-(deftest a-test
-  (testing "FIXME, I fail."
-    (is (= 0 1))))
diff --git a/test/microformats/parser_test.clj b/test/microformats/parser_test.clj
new file mode 100644
index 0000000..5bdf9ad
--- /dev/null
+++ b/test/microformats/parser_test.clj
@@ -0,0 +1,8 @@
+(ns microformats.parser-test
+  (:require [clojure.test :refer :all]
+            [microformats.core :refer :all]))
+
+(deftest empty-document
+  (testing "Empty HTML document should return an empty 'items' array and 'rels' hash."
+    (is (= {:items [] :rels {}}
+           (parse "")))))