|go ahead... be a heretic|
Deliberate failure in Test::Moreby macrobat (Beadle)
|on Jun 07, 2010 at 01:32 UTC||Need Help??|
macrobat has asked for the wisdom of the Perl Monks concerning the following question:
I'm using Test::More and Moose.
My minimal Moose class looks a little like this:
My new.t file has the following:
Now, I know the second test will fail; it's what I'm testing for. What I don't know is, how do I tell Test::More that failure is what I'm hoping for? I've tried wrapping it in an eval and testing $@, but it still reports as a failure.
Am I missing something glaringly obvious here?