Permalink
Please sign in to comment.
Browse files
clojure: function and vars are evaluated accurately, instead of causi…
…ng an error (#84) * clojure: function and vars are evaluated accurately, instead of causing an error * test: use lein doo + add tests
- Loading branch information...
Showing
with
48 additions
and 21 deletions.
- +1 −1 circle.yml
- +3 −4 project.clj
- +1 −1 resources/public/index-dev.html
- +15 −1 resources/public/plugin-dev.html
- +23 −0 src/klipse/cards/test/eval.cljs
- +1 −1 src/klipse/compiler.cljs
- +1 −1 src/klipse/core.cljs
- +3 −12 test/cljs/test/runner.cljs
| @@ -1,19 +1,10 @@ | ||
| (ns test.runner | ||
| (:require | ||
| - [cljs.test :as test :refer-macros [run-all-tests] :refer [report]] | ||
| + [doo.runner :refer-macros [doo-tests]] | ||
| [klipse.cards.test.eval] | ||
| [klipse.cards.test.compile] | ||
| )) | ||
| -(enable-console-print!) | ||
| - | ||
| -(defmethod report [::test/default :summary] [m] | ||
| - (println "\nRan" (:test m) "tests containing" | ||
| - (+ (:pass m) (:fail m) (:error m)) "assertions.") | ||
| - (println (:fail m) "failures," (:error m) "errors.") | ||
| - (aset js/window "test-failures" (+ (:fail m) (:error m)))) | ||
| - | ||
| - | ||
| -(defn ^:export run[] | ||
| - (println "res: " (run-all-tests #"klipse.cards.test.*"))) | ||
| +(doo-tests 'klipse.cards.test.eval | ||
| + 'klipse.cards.test.compile) | ||
0 comments on commit
e3bce34