Skip to content

v1.0.2

Latest
Compare
Choose a tag to compare
@bitspittle bitspittle released this 25 Nov 22:06

Changes

  • Added support for grouped assertions.
    • See notes below.
  • Added support for nodejs targets
  • Added assertion support for all array types
  • Added some methods to the map subject.
    • e.g. containsKey, doesNotContainValue, etc.

Notes

Grouped assertions

If you would like to check multiple assertions at the same time (meaning a failure won't be reported until all checks have run), you can use the assertAll function:

val person = Person("Alice", 30)
assertAll {
    that(person.name).isEqualTo("Bob")
    that(person.age).isEqualTo(45)
}
// The above will assert once, reporting both equality check failures

Full Changelog: v1.0.1...v1.0.2