Skip to content

0.15.2: Scala 3.0.0-RC2 support

Compare
Choose a tag to compare
@keynmol keynmol released this 30 Mar 10:10
· 118 commits to develop since this release
2bf06fc

Expecty 0.15.2 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-RC2 n/a n/a n/a
2.13.x n/a n/a
2.12.x n/a n/a
2.11.x

Changes

  • Maintenance release, upgarding Scala 3 version from 3.0.0-RC1 to 3.0.0-RC2

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