Entry tags:
Testing exceptions
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)
no subject
no subject
no subject
Sophie, thank You for guiding me to my personal mislead!
I work on my own DW installation and on Dreamhack. By "Dreamwidth's CPAN" I meant perl modules on Dreamhack. (have I misused the word CPAN?) However...
It is my personal perl libraries set that can't locate Test::Exception package, not the one on Dreamhack:) Using Test::Exception on Dreamhack works fine!:)
Great thanks:)