Skip to content

expected functions with arguments #2

@matt-beanland

Description

@matt-beanland

Expected functions which return outstanding/atom are supported but only with an arity of 1 (the sole parameter is implicit, and is expected).

Improve expected functions so that they can be a tuple of function and arguments this allows expected function:

{&any_of/2, }, where actual satisfies expected if outstanding(element, actual) returns nil for any of the elements in expected list.

{&all_of/2, }, where actual satisfies expected if the actual collection returns nil outstanding for all of the elements in the expected list.

{&one_of/2, }, where actual satisfies expected if actual collection returns nil expecting for exactly one of the elements in expected list.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions