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

RCF rewriting varadic fns (fn [& xs]) wrong #65

Open
dustingetz opened this issue Sep 1, 2022 · 2 comments
Open

RCF rewriting varadic fns (fn [& xs]) wrong #65

dustingetz opened this issue Sep 1, 2022 · 2 comments

Comments

@dustingetz
Copy link
Member

(def vector' (fn [& xs] (apply vector xs)))
(tests
  (vector 1 2 3) := [1 2 3]
  (vector' 1 2 3) := [1 2 3])
✅✅
(tests
  (vector 1 2 3) := [1 2 3]
  (def vector' (fn [& xs] (apply vector xs)))
  (vector' 1 2 3) := [1 2 3])
✅
ERROR in () (:)
expected: (hyperfiddle.rcf/= (vector' 1 2 3) [1 2 3])
  actual: clojure.lang.ArityException: Wrong number of args (3) passed to: dustin.y2022.missionary-faq/eval8620/vector'--8625
@dustingetz
Copy link
Member Author

Fixed in 83b90b4

@dustingetz
Copy link
Member Author

reopening for unit tests

@dustingetz dustingetz reopened this Sep 1, 2022
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