Skip to content

Instantly share code, notes, and snippets.

@begeric
Created November 19, 2014 21:25
Show Gist options
  • Save begeric/7bf54ac93782cd37d9a0 to your computer and use it in GitHub Desktop.
Save begeric/7bf54ac93782cd37d9a0 to your computer and use it in GitHub Desktop.
...
InvariantSuite:
- more informative error messages *** FAILED ***
"...that x.>(3) is false[]
where x = 2" did not equal "...that x.>(3) is false[
where x = 2" (InvariantSuite.scala:12)
ShowSuite:
...
- string literals with newlines and double quotes *** FAILED ***
"... None, Lit.String("\[r\n x\r]\n ")), Defn.Va..." did no
l "... None, Lit.String("\[n x]\n ")), Defn.Va..." (ShowSuite.
37)
- interpolations *** FAILED ***
"... None, Lit.String("\[r\n $x\r\n $y\r\n ..$z\r]
"))))" did not equal "... None, Lit.String("\[n $x\n $y\n
..$z]\n "))))" (ShowSuite.scala:57)
- foo.bar(bar) { baz } *** FAILED ***
"foo.bar(bar) {[
baz]
}" did not equal "foo.bar(bar) {[
baz
}" (ShowSuite.scala:72)
- Template.self stringifications *** FAILED ***
"new {[
val x = 2
val y = 3]
}" did not equal "new {[
val x = 2
val y = 3
}" (ShowSuite.scala:83)
...
- parentheses in patterns *** FAILED ***
"x match {[
case (xs: List[Int]) :+ x =>
???]
}" did not equal "x match {[
case (xs: List[Int]) :+ x =>
???
}" (ShowSuite.scala:167)
- List(x, y) :: z *** FAILED ***
"x match {[
case List(x, y) :: z =>
???]
}" did not equal "x match {[
case List(x, y) :: z =>
???
}" (ShowSuite.scala:177)
...
- case semicolons *** FAILED ***
"x match {[
case y =>
foo1
foo2]
}" did not equal "x match {[
case y =>
foo1
foo2
}" (ShowSuite.scala:190)
...
- private/protected within something *** FAILED ***
"class C {[
private[this] val x = 1
private[D] val y = 2
protected[this] val z = 3
protected[D] val w = 4]
}" did not equal "class C {[
private[this] val x = 1
private[D] val y = 2
protected[this] val z = 3
protected[D] val w = 4
}" (ShowSuite.scala:265)
...
ScalaTest
Run completed in 1 second, 104 milliseconds.
Total number of tests run: 231
Suites: completed 20, aborted 0
Tests: succeeded 222, failed 9, canceled 0, ignored 0, pending 0
*** 9 TESTS FAILED ***
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment