Skip to content

Commit

Permalink
Leiningen configuration was missing a test resource directory causing…
Browse files Browse the repository at this point in the history
… the tests to fail.
  • Loading branch information
malcolmsparks committed Jun 14, 2011
1 parent dae8e05 commit 57e6181
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
:library-path "target/dependency"
:test-path "src/test/clojure"
:target-dir "target/"
:dev-resources-path "src/test/resources"
:local-repo-classpath true)
17 changes: 9 additions & 8 deletions src/test/clojure/clj_markdown/test/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@
(count (markdown
(.getResourceAsStream (class System) "/markdown-tests/Markdown Documentation - Syntax.html"))))))

(pprint
(map #(dissoc % :remaining)
(process-markdown-lines
(map (fn [lineno line] (assoc line :lineno lineno))
(map inc (range)) ; 1..infinity
(read-markdown-lines
(io/reader
(.getResourceAsStream (class System) "/markdown-tests/Markdown Documentation - Basics.text")))))))
(comment
(pprint
(map #(dissoc % :remaining)
(process-markdown-lines
(map (fn [lineno line] (assoc line :lineno lineno))
(map inc (range)) ; 1..infinity
(read-markdown-lines
(io/reader
(.getResourceAsStream (class System) "/markdown-tests/Markdown Documentation - Basics.text"))))))))

(pprint
(markdown
Expand Down

0 comments on commit 57e6181

Please sign in to comment.