Rosella.Test.Asserter.throws doesn't work #42

Open
Benabik opened this Issue Jul 27, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Benabik commented Jul 27, 2012

  1. throws() and throws_nothing() appear not to be tested in t/test/Asserter.t
  2. throws() doesn't work as advertised, passing whether or not the block throws

I believe this is because it calls self.fail() inside a try-catch block and fail() uses an exception to denote failure.

Owner

Whiteknight commented Jul 27, 2012

Thanks for catching this issue! I'll take a look at the code tonight and see what I can do about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment