Skip to content
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

Bug using deftest macro #10

Open
wandersoncferreira opened this issue Nov 7, 2020 · 0 comments
Open

Bug using deftest macro #10

wandersoncferreira opened this issue Nov 7, 2020 · 0 comments

Comments

@wandersoncferreira
Copy link
Contributor

wandersoncferreira commented Nov 7, 2020

Look at the following example:

(deftest stuck-test
  (is (= (cl-cons [1 2 cl-nil]) 1)))

;; Running test stuck-test in abclj.core-test...
;; forever!

(defmacro not-a-problem []
  `(is (= (cl-cons [1 2 cl-nil]) 1)))

(not-a-problem)
;; => false

I thought the problem was somehow related to the usage of clj-macro. But it doesn't. Might be interesting to dig deeper and see what the testing framework is complaining about. I can't get the first example to run, get stuck with no output message. Maybe you can get something interesting out of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant