Made Smallest problem not parse printed integer.

This commit is contained in:
Tom Helmuth 2021-11-02 10:37:49 -04:00
parent fcb8bd398b
commit 69a65229fe

View File

@ -80,10 +80,7 @@
:print)) :print))
inputs) inputs)
errors (map (fn [correct-output output] errors (map (fn [correct-output output]
(let [parsed-output (try (read-string output) (if (= (str correct-output) output) 0 1))
#?(:clj (catch Exception e 1000.0)
:cljs (catch js/Error. e 1000.0)))]
(if (= correct-output parsed-output) 0 1)))
correct-outputs correct-outputs
outputs)] outputs)]
(assoc individual (assoc individual