Forgot to add the problem-cases.general.
This commit is contained in:
parent
c7aa687e88
commit
80e4be8fe5
1 changed files with 12 additions and 0 deletions
12
src/problem_cases/general.clj
Normal file
12
src/problem_cases/general.clj
Normal 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"))
|
Loading…
Reference in a new issue