Skip to content

Commit

Permalink
Update munit to 1.0.0 (#146)
Browse files Browse the repository at this point in the history
* MUnit 1.0
  • Loading branch information
poslegm authored Aug 6, 2024
1 parent da4711b commit 7a13b69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ val scala213 = "2.13.14"
val scala3 = "3.3.3"

lazy val Version = new {
val munit = "0.7.29"
val munit = "1.0.0"
val zio = "2.0.22"
val scalaJavaTime = "2.6.0"
}
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/scala/munit/ZAssertions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ trait ZAssertions {
obtained: ZIO[R, E, A],
expected: B,
clue: => Any = "values are not the same"
)(implicit loc: Location, ev: B <:< A): ZIO[R, E, Unit] =
)(implicit loc: Location, ev: Compare[A, B]): ZIO[R, E, Unit] =
obtained.map(assertEquals(_, expected, clue))

/** Asserts that `ZIO[R, E, A]` returns NOT the same result as expected
Expand All @@ -91,7 +91,7 @@ trait ZAssertions {
obtained: ZIO[R, E, A],
expected: B,
clue: => Any = "values are not the same"
)(implicit loc: Location, ev: A =:= B): ZIO[R, E, Unit] =
)(implicit loc: Location, ev: Compare[A, B]): ZIO[R, E, Unit] =
obtained.map(assertNotEquals(_, expected, clue))

implicit class InterceptSyntax[R, E <: Throwable](private val body: ZIO[R, E, Any]) {
Expand Down

0 comments on commit 7a13b69

Please sign in to comment.