Testing exceptions
Jul. 28th, 2010 09:24 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Hi:) I'm a one working on a calendar functionality for Dreamwidth:)
I'd like to ask what to use to test if my code threw exception. I found that this could be tested by Test::Exeption library's commands, but there is no Test/Exception.pm library in Dreamwidth's CPAN.
I found that Dw do use exceptions, but maybe there is preferred to return a specific code? (I prefer throwing exceptions...:P)
I'd like to ask what to use to test if my code threw exception. I found that this could be tested by Test::Exeption library's commands, but there is no Test/Exception.pm library in Dreamwidth's CPAN.
I found that Dw do use exceptions, but maybe there is preferred to return a specific code? (I prefer throwing exceptions...:P)