debian man page for test::unit::assertion::exception

Query: test::unit::assertion::exception

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Test::Unit::Assertion::Exception(3pm)			User Contributed Perl Documentation		     Test::Unit::Assertion::Exception(3pm)

NAME
Test::Unit::Assertion::Exception - A assertion for raised exceptions
SYNOPSIS
require Test::Unit::Assertion::Exception; my $assert_raised = Test::Unit::Assertion::Exception->new('MyException'); # This should succeed $assert_eq->do_assertion(sub { MyException->throw() }); # This should fail $assert_eq->do_assertion(sub { });
DESCRIPTION
Although the SYNOPSIS shows how you'd use Test::Unit::Assertion::Exception directly, it is more sensibly used indirectly via "Test::Unit::Test::assert_raises()", which instantiates a "Test::Unit::Assertion::Exception".
AUTHOR
Copyright (c) 2001 Piers Cawley <pdcawley@iterative-software.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
o Test::Unit::TestCase o Test::Unit::Assertion perl v5.8.8 2006-09-13 Test::Unit::Assertion::Exception(3pm)
Related Man Pages
ppix::regexp::token::grouptype::assertion(3pm) - debian
test::most::exception(3pm) - debian
test::unit(3pm) - debian
test::unit::assertion::regexp(3pm) - debian
test::unit::runner::terminal(3pm) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Introduction
Find columns in a file based on header and print to new file
How to copy a column of multiple files and paste into new excel file (next to column)?
New UNIX and Linux History Sections