about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
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 "")))))