Skip to content

Add a spec test for check all with no matching variables #184

@saoirse-a

Description

@saoirse-a

It can be intuitive to implement check all using some sort of iterator/enumerable-based all combinator: assemble all the variable sets that support the predicates in the check and then check if all of those sets cause the expressions in the check to evaluate to true.

However, this implementation would be wrong, because the all combinator evaluates true on empty collections, and if there are no variables that support the predicates in the check, it should fail.

It would be nice if the sample tests included a test in which a biscuit should fail authorisation because it contains a check all for which there is no supporting set of facts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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