#2687 Test.verifyErr()

SlimerDude Fri 2 Mar 2018

It would be useful if Test.verifyErr() and Test.verifyErrMsg() returned the Err that was caught to allow you to do further testing on it, e.g.:

err := verifyErr(BadHttpStatus#) {
verifyEq(401, err.code)
verifyEq("Unauthorized", err.msg)

brian Fri 2 Mar 2018

While I agree that would be nice, to make that change would be a binary breaking change and everybody would have to recompile their code (its source compatible, but not fcode/bytecode compatible). So seems like a really heavy price to pay for the convenience

Login or Signup to reply.