Skip to content

Commit

Permalink
Fix: implement system exist on print-err!
Browse files Browse the repository at this point in the history
  • Loading branch information
teesloane committed Apr 30, 2020
1 parent ebbe2d8 commit 5aba693
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions clojure/src/firn/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
:uncategorized "🗒 Uncategorized Error:"}
sel-log-typ (get err-types typ (get err-types :uncategorized))]
(apply println sel-log-typ args)
;; (System/exit 1) ;; FIXME: this is the correct usage, but makes testing difficult as it interrupts lein test.
nil))
(System/exit 1))) ;; FIXME: this is the correct usage, but makes testing difficult as it interrupts lein test.


(defn str->keywrd
"Converts a string to a keyword"
Expand Down
2 changes: 1 addition & 1 deletion clojure/test/firn/util_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@
(doseq [f files]
(t/is (= ".org" (fs/extension (.getPath f)))))))
(t/testing "It returns an empty list when nothing is found"
(let [no-files (sut/find-files-by-ext stub/test-dir "fake-extension")]
(let [no-files (sut/find-files-by-ext stub/test-dir "foo")]
(t/is (= (count no-files) 0)))))

0 comments on commit 5aba693

Please sign in to comment.