kotest / kotest-extensions-arrow

Kotest extensions for Arrow
Apache License 2.0
39 stars 13 forks source link

Compatibility issue with kotest 5.6.* #235

Closed obecker closed 1 year ago

obecker commented 1 year ago

It seems to me kotest-extensions-arrow needs to be rebuilt with the latest kotest version, since the signature of io.kotest.matchers.shouldBe has changed (previously it was of type Unit, now it returns T).

The error I'm getting is

java.lang.NoSuchMethodError: 'void io.kotest.matchers.ShouldKt.shouldBe(java.lang.Object, java.lang.Object)'
    at io.kotest.assertions.arrow.UtilsKt.shouldBe(Utils.kt:7)
    at io.kotest.assertions.arrow.core.EitherKt.shouldBeLeft(Either.kt:77)

(and indeed, the type is no longer void).

Actually, UtilsKt can be removed (or made deprecated), since the core matchers now provide the required functionality.