You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ bb
Babashka v0.1.2 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (require 'clojure.test)
nil
user=> (meta #'clojure.test/report)
nil
user=> (binding [clojure.test/report (constantly true)] nil)
java.lang.IllegalStateException: Can't dynamically bind non-dynamic var clojure.lang.MultiFn@108f010d0 [at line 3, column 1]
expected behavior
$ clj
Clojure 1.10.1
user=> (require 'clojure.test)
nil
user=> (meta #'clojure.test/report)
{:doc "Generic reporting function, may be overridden to plug in\n different report formats (e.g., TAP, JUnit). Assertions such as\n 'is' call 'report' to indicate results. The argument given to\n 'report' will be a map with a :type key. See the documentation at\n the top of test_is.clj for more information on the types of\n arguments for 'report'.", :dynamic true, :added "1.1", :line 324, :column 1, :file "clojure/test.clj", :name report, :ns #object[clojure.lang.Namespace 0x74960bfa "clojure.test"]}
user=> (binding [clojure.test/report (constantly true)] nil)
nil
The text was updated successfully, but these errors were encountered:
version
babashka v0.1.2
platform
macOS Catalina
problem
The metadata seems to be set on the code, but I can't refer it.
https://github.com/borkdude/babashka/blob/v0.1.2/src/babashka/impl/clojure/test.clj#L328-L337
repro
expected behavior
The text was updated successfully, but these errors were encountered: