Skip to content

0.15.1

Compare
Choose a tag to compare
@eed3si9n eed3si9n released this 19 Jan 05:14
· 129 commits to develop since this release
v0.15.1

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

fixes

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