From 69a65229fed908323d217924bcaffbd92a358895 Mon Sep 17 00:00:00 2001 From: Tom Helmuth Date: Tue, 2 Nov 2021 10:37:49 -0400 Subject: [PATCH] Made Smallest problem not parse printed integer. --- src/propeller/problems/software/smallest.cljc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/propeller/problems/software/smallest.cljc b/src/propeller/problems/software/smallest.cljc index 9ca4dbb..cefcefe 100755 --- a/src/propeller/problems/software/smallest.cljc +++ b/src/propeller/problems/software/smallest.cljc @@ -80,10 +80,7 @@ :print)) inputs) errors (map (fn [correct-output output] - (let [parsed-output (try (read-string output) - #?(:clj (catch Exception e 1000.0) - :cljs (catch js/Error. e 1000.0)))] - (if (= correct-output parsed-output) 0 1))) + (if (= (str correct-output) output) 0 1)) correct-outputs outputs)] (assoc individual