Skip to content

Feature Request: assert that key is present but ignore value #17

Open
@naamancurtis

Description

@naamancurtis

I was wondering if you'd be open to including some kind of flag within the macro that indicates that it should check that the key exists, but ignores the value (or just accepts any value).

The main reason for doing this would be for values such as decimals where checking for exact equality isn't likely to work eg:

json atoms at path ".price" are not equal:
    expected:
        2.97
    actual:
        2.9699999999999998

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions