These are chat archives for etorreborre/specs2

23rd
Jun 2016
Adelbert Chang
@adelbertc
Jun 23 2016 04:57
This message was deleted
FooException extends Exception
it prints before but not after
crap, accidentally deleted code
// In source
def foo() = /* Calls something that throws FooException */

// In test
def fooTest = {
  def x = {
    println("before")
    foo()
    println("after")
  }

  try { x; ko }
  catch { case _: Throwable => ok }
}
Eric Torreborre
@etorreborre
Jun 23 2016 05:54
@adelbertc I don’t see what is the question :-)
Adelbert Chang
@adelbertc
Jun 23 2016 07:06
@etorreborre ah it appears i also accidentally deleted the question - the question is that the test still failed and seems to not catch the exception
though currently i have good reason to believe it's a more subtle error - my minimization of the situation is not completely accurate. will confirm tomorrow :-)