Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Replace curry tests with a package-wide property test #22

Open
jackfirth opened this issue Jul 19, 2017 · 0 comments
Open

Replace curry tests with a package-wide property test #22

jackfirth opened this issue Jul 19, 2017 · 0 comments

Comments

@jackfirth
Copy link
Owner

Not sure exactly how to do this, but ideally it should be possible to write a single test that traverses all functions exported by Pyramda and asserts they're curried. A simple approach to this would be for the @curry decorator to add a hidden attribute to the function indicating it's curried, and have the test look for this property. This doesn't test that the currying actually works as advertised though.

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

No branches or pull requests

1 participant