robfletcher / strikt

An assertion library for Kotlin
https://strikt.io/
Apache License 2.0
558 stars 61 forks source link

Add Array.hasSize() assertion #265

Closed theHacker closed 1 year ago

theHacker commented 2 years ago
    "test" {
        val list = listOf(1, 2)
        val array = arrayOf(1, 2)

        expect {
            that(list).hasSize(2) // works
            that(array).hasSize(2) // <- does NOT work
        }
    }