0.15.3: Scala 3.0.0 support
Expecty 0.15.3 is cross published to the following build matrix:
Scala Version | JVM | JS (1.x) | JS (0.6.x) | Native (0.4.x) | Native (0.3.x) |
---|---|---|---|---|---|
3.0.0 | ✅ | ✅ | n/a | n/a | n/a |
2.13.x | ✅ | ✅ | ✅ | ✅ | n/a |
2.12.x | ✅ | ✅ | ✅ | ✅ | n/a |
2.11.x | ✅ | ✅ | ✅ | ✅ | ✅ |
Changes
- Maintenance release, upgarding Scala 3 version from 3.0.0-RC2 to 3.0.0
about Expecty
Expecty is a mini library to bring power assert to Scala. Power assert (or power assertion) is a variant of assert(...)
function that that prints out detailed error message automatically. It was originally implemented by Peter Niederwieser for Spock.
scala> val a = 1; val b = 3
val a: Int = 1
val b: Int = 3
scala> import com.eed3si9n.expecty.Expecty.assert
import com.eed3si9n.expecty.Expecty.assert
scala> assert(a * b == 7)
java.lang.AssertionError: assertion failed
assert(a * b == 7)
| | | |
1 3 3 false
at com.eed3si9n.expecty.ExpectyBase$ExpectyListener.expressionRecorded(Expecty.scala:41)
at com.eed3si9n.expecty.RecorderRuntime.recordExpression(RecorderRuntime.scala:40)
... 35 elided