pyramda icon indicating copy to clipboard operation
pyramda copied to clipboard

Replace curry tests with a package-wide property test

Open jackfirth opened this issue 7 years ago • 0 comments

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.

jackfirth avatar Jul 19 '17 21:07 jackfirth