Skip to content

Test assertion to check for multiple values #498

@t-b

Description

@t-b

Let's say your value to check can be 2 or 3. Then you currently can do

CHECK(val == 2 || val == 3)

which solves the issue but does not give nice error messages.

We could add something like

XXX_ONE_OF_WAVE(val, {2, 3})
XXX_ONE_OF_TEXTWAVE(str, {"a", "b"})

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions