Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ShouldExistInOrderTest.kt (kotest#30) (kotest#3872)
provide more details when `shouldExistInOrder` fails. For instance, print out "Predicate number 1 did not match", as shown in the following example: ``` "fail with clear message" { shouldThrowAny { listOf(1, 2).shouldExistInOrder( { i: Int -> i < 2 }, { i: Int -> i < 2 } ) }.message shouldBe "[1, 2] did not match the predicates [(kotlin.Int) -> kotlin.Boolean, (kotlin.Int) -> kotlin.Boolean] in order. Predicate at index 1 did not match." } ``` --------- Co-authored-by: Emil Kantis <emil.kantis@protonmail.com>
- Loading branch information