-
public final class TestUtilsKt
-
-
Method Summary
Modifier and Type Method Description final <N extends Any, V extends N> UnitshouldEqual(KCallable<N> $self, V expected)Extension to add the name of a property to error messages. final <N extends Any, V extends N> UnitshouldBe(KCallable<N> $self, V expected)Extension to add the name of the property to error messages. final <T extends Any> UnitshouldMatch(KCallable<T> $self, Function1<T, Unit> expected)-
-
Method Detail
-
shouldEqual
final <N extends Any, V extends N> Unit shouldEqual(KCallable<N> $self, V expected)
Extension to add the name of a property to error messages.
-
shouldBe
final <N extends Any, V extends N> Unit shouldBe(KCallable<N> $self, V expected)
Extension to add the name of the property to error messages. Use with double colon syntax, eg
it::isIntegerLiteral shouldBe true. For properties synthesized from Java getters starting with "get", you have to use the name of the getter instead of that of the generated property (with the get prefix).If this conflicts with io.kotest.matchers.shouldBe, use the equivalent shouldEqual
-
-
-
-