You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue with iterable assertions in AssertK version com.willowtreeapps.assertk:assertk-jvm:0.28.0.
The problem arises when I try to assert that two lists contain the same elements. The assertion fails, and the error message suggests that one of the lists is being treated as a two-dimensional array. Here's a minimal example that reproduces the issue:
val firstList = listOf(1, 2)
val secondList = listOf(2, 1)
assertThat(firstList).containsExactlyInAnyOrder(secondList)
org.opentest4j.AssertionFailedError: expected to contain exactly in any order:<[[2, 1]]> but was:<[1, 2]>
elements not found:<[[2, 1]]>
extra elements found:<[1, 2]>
The text was updated successfully, but these errors were encountered:
I'm encountering an issue with iterable assertions in AssertK version com.willowtreeapps.assertk:assertk-jvm:0.28.0.
The problem arises when I try to assert that two lists contain the same elements. The assertion fails, and the error message suggests that one of the lists is being treated as a two-dimensional array. Here's a minimal example that reproduces the issue:
The text was updated successfully, but these errors were encountered: