Forgot to add the problem-cases.general.

This commit is contained in:
zkim 2010-12-23 03:03:55 -07:00
parent c7aa687e88
commit 80e4be8fe5

View file

@ -0,0 +1,12 @@
(ns problem-cases.general
"A place to examine poor parser behavior. These should go in tests when they get written."
)
;; Should have only this comment in the left margin.
;; See [https://github.com/fogus/marginalia/issues/#issue/4](https://github.com/fogus/marginalia/issues/#issue/4)
(defn parse-bool [v] (condp = (.trim (text v))
"0" false
"1" true
"throw exception here"))