Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Olafur Pall Geirsson committed Mar 29, 2020
1 parent b9a01b0 commit 77507dd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions tests/shared/src/main/scala/munit/ScalaCheckFrameworkSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,30 @@ class ScalaCheckFrameworkSuite extends ScalaCheckSuite {
object ScalaCheckFrameworkSuite
extends FrameworkTest(
classOf[ScalaCheckFrameworkSuite],
s"""|==> success munit.ScalaCheckFrameworkSuite.boolean check (true)
|==> failure munit.ScalaCheckFrameworkSuite.boolean check (false) - /scala/munit/ScalaCheckFrameworkSuite.scala:19
|18:
|19: property("boolean check (false)") {
|20: forAll { (n: Int) =>
|
|Falsified after 0 passed tests.
|> ARG_0: -1
|> ARG_0_ORIGINAL: 2147483647
|==> success munit.ScalaCheckFrameworkSuite.tagged
|==> success munit.ScalaCheckFrameworkSuite.assertions (true)
|==> failure munit.ScalaCheckFrameworkSuite.assertions (false) - /scala/munit/ScalaCheckFrameworkSuite.scala:41
|40: assertEquals(n * 1, n)
|41: assertEquals(n * n, n)
|42: assertEquals(n + 0, n)
|values are not the same
|=> Obtained
|1
|=> Diff (- obtained, + expected)
|-1
|+-1
|
|Falsified after 0 passed tests.
|> ARG_0: -1
|> ARG_0_ORIGINAL: 2147483647
|""".stripMargin
"""|==> success munit.ScalaCheckFrameworkSuite.boolean check (true)
|==> failure munit.ScalaCheckFrameworkSuite.boolean check (false) - /scala/munit/ScalaCheckFrameworkSuite.scala:19
|18:
|19: property("boolean check (false)") {
|20: forAll { (n: Int) => scala.math.sqrt(n * n) == n }
|
|Falsified after 0 passed tests.
|> ARG_0: -1
|> ARG_0_ORIGINAL: 2147483647
|==> success munit.ScalaCheckFrameworkSuite.tagged
|==> success munit.ScalaCheckFrameworkSuite.assertions (true)
|==> failure munit.ScalaCheckFrameworkSuite.assertions (false) - /scala/munit/ScalaCheckFrameworkSuite.scala:37
|36: assertEquals(n * 1, n)
|37: assertEquals(n * n, n)
|38: assertEquals(n + 0, n)
|values are not the same
|=> Obtained
|1
|=> Diff (- obtained, + expected)
|-1
|+-1
|
|Falsified after 0 passed tests.
|> ARG_0: -1
|> ARG_0_ORIGINAL: 2147483647
|""".stripMargin
)
2 changes: 1 addition & 1 deletion tests/shared/src/test/scala/munit/ClueSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ClueSuite extends BaseSuite {
// Disabled on Dotty because the starting position doesn't include opening "("
check(
"lambda".tag(NoDotty), { (y: String) => y.head },
"(y: String) =>\n y.head"
"(y: String) => y.head"
)

checkPrint(
Expand Down

0 comments on commit 77507dd

Please sign in to comment.