An assertion library that can be used in
- JavaScript ecosystem (JS & TS)
- JVM ecosystems (Java, Scala, Groovy, e.t.c)
- Kotlin Multiplatform
expect(1 + 1).toBe(2)
expect(2 + 2) {
toBeEqualTo(4)
toBeLessThan(5)
toBeGreaterThan(1)
toBeNonNull()
toBe<Int>()
toBe<Number>()
toBe<Comparable<*>>()
}
dependencies {
implementation("tz.co.asoft:expect-core:0.0.42")
// - - - - - or - - - - -
implementation("tz.co.asoft:expect-coroutines:0.0.42")
}
Expect Version | Kotlin Version |
---|---|
0.0.42 | 1.5.10 |
0.0.41 | 1.5.10 |