Skip to content

eventually + assertMatchΒ #162

@NeQuissimus

Description

@NeQuissimus

Using a combination of eventually and assertMatch is currently rather inconvenient.
assertMatch returns Unit while eventually expects Boolean.

So the following piece of code does not compile

  eventually {
        assertMatch(y) {
          case Success(x: String) if x == "bla" =>
        }
      }

while this does but only with a manual true as a workaround.

  eventually {
      assertMatch(y) {
        case Success(x: String) if x == "bla" =>
      }
      true
    }

Maybe an eventually that only cares about match errors or a new eventuallyMatch could be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions