I'm fighting Hamcrest matchers where `assertThat(l...
# android
i
I'm fighting Hamcrest matchers where
assertThat(list, IsIterableContainingInOrder.contains(anotherList))
doesn't make the compiler type resolver happy.
stackoverflow 1
t
izacus: I use this custom fun :
infix fun <E, T : List<E>> T?.mustEqualTo(theOther: List<E>) = Assert.assertEquals(theOther, this)
=>
myList mustEqualTo listOf("1", "2")