dirk.dittert
04/01/2025, 1:36 PMval subject = intArrayOf()
val expected = intArrayOf()
subject shouldBeEqual expected
This fails because what I really intended to do was to use contentEquals()
on the arrays. I don't seem to find a matcher to do just that, though?Vampire
04/01/2025, 1:54 PMsubject shouldBe expected
?Vampire
04/01/2025, 1:59 PMArray
, but not for IntArray
dirk.dittert
04/01/2025, 1:59 PMIntArray
dirk.dittert
04/01/2025, 2:00 PMVampire
04/01/2025, 2:00 PMVampire
04/01/2025, 2:01 PMelse
in eq
which uses DefaultEq
which uses asList
on IntArray
Vampire
04/01/2025, 2:01 PM==
😞dirk.dittert
04/01/2025, 2:02 PMVampire
04/01/2025, 2:02 PMdirk.dittert
04/01/2025, 2:03 PMtoList()
and compare that with shouldContainExactly
as there is a list conversion happening anyway.dirk.dittert
04/01/2025, 2:03 PMVampire
04/01/2025, 2:04 PMval subject = intArrayOf()
val expected = intArrayOf()
subject shouldBe expected
and result was successVampire
04/01/2025, 2:04 PMdirk.dittert
04/01/2025, 2:05 PM