Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Syntax for multiple assertions #29

@provegard

Description

@provegard

Should be avoided, but may be useful.

  expect.multiple(Seq(
    expect(...).toEqual(...),
    expect(...).toMatch(...)
  ))

NUnit's Assert.Multiple is not really equivalent since we need our tests to return an Expectation. So we need a compound Expectation here.

Perhaps a params array is nicer:

  expect.multiple(
    expect(...).toEqual(...),
    expect(...).toMatch(...)
  )

@eliasson thoughts?

Metadata

Metadata

Assignees

No one assigned

    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