Skip to content

Commit

Permalink
try with reader conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
carocad committed Aug 16, 2020
1 parent 4198acc commit 8c79590
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parcera/macros.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"Some of our tests use `slurp`, which ClojureScript lacks"
#?(:clj (:refer-clojure :exclude [slurp]))
#?(:cljs (:require-macros [parcera.macros]))
(:require [clojure.test :refer [is]]
(:require #?(:clj [clojure.test :refer [is]]
:cljs [cljs.test :refer [is]])
[parcera.core :as parcera]))

#?(:clj (defmacro slurp* [file]
(clojure.core/slurp file)))


#?(:clj (defmacro roundtrip
"checks parcera can parse and write back the exact same input code"
[input]
Expand Down

0 comments on commit 8c79590

Please sign in to comment.