-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question about fun-with-values test/example #61
Comments
welcome to Clojure :) notice that the test is not exactly a Clojure file, but a take a look at the mount's ClojureScript notes, you'll see that when mount is (re)used in both Clojure and ClojureScript environments, its states are This is exactly what you see in your example: (deftest fun-with-values
(is (= (@f-args 41 1) 42))) the reason why this does not work for you is most likely caused by you using the default (mount/in-cljc-mode) you can try it in the REPL before running these tests, or directly within the test file. |
That did the trick, both for my minimal copy of your test, and for my actual code. I missed that note about |
sure. in case you are running it in Clojure only, you don't have to do |
Oh. I never tried that! But I will also eventually be using this in cljs, so it is good to know. |
Not really an issue; probably more a lack of understanding due to my newness to clojure.
I'm trying to understand your fun-with-value example.
lein test
on your code repo works fine, so clearly there isn't a bug.However, when I try to use the approach in my code, I get errors like:
I copied the test file as is into my project. I'm using boot, not lein, but otherwise it should work the same.
My stripped down version of your test is:
When run, I get
Any hints on what is missing would be appreciated.
The text was updated successfully, but these errors were encountered: