Closed fran-worley closed 8 years ago
@solnic this should help with the predicate registry in dry-validation and fixes some bugs (e.g. at the moment if you curry a predicate with all args, you'll get an error).
I've run this against the specs for dry-types and dry-validation so if you are happy I should be able to merge it.
Good changes! 👏
1) update shared specs to work with predicates where airity != 2 2) capture predicate args without currying the function to maintain airity and parameters 3) add specs for access to predicate airity & parameters 3) raise errors when calling a predicate with invalid no. args.