pyramda
pyramda copied to clipboard
Replace curry tests with a package-wide property test
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.