hyperfiddle / rcf

RCF – a REPL-first, async test macro for Clojure/Script
MIT License
271 stars 11 forks source link

Can't test custom let macro? #34

Closed didibus closed 2 years ago

didibus commented 2 years ago

It seems let is treated special by RCF:

(defmacro let
  [bindings & exprs]
  100)

(tests
  (! (let [a 1] a))
  % := 100)

;; Test Fail!

When I macro-expand, I see that RCF uses clojure.core/let instead of the dedefined let.

ggeoffrey commented 2 years ago

Thank you for the report. This is a bug. I understand the issue and have an idea of how to fix it. I’ll keep you posted.

ggeoffrey commented 2 years ago

Related to #40