NAME
Fennec::Assert::Core::Simple - Assertion library that mirrors Test::Simple's functionality.
DESCRIPTION
This assertion library exports testers nearly identical to those in Test::Simple. they should be almost completely compatible with Test::Simple's.
TESTERS
These are exported for use within tests, each one generates at least 1 result.
- ok($bool; $name)
-
Generates a pass result if $bool is true, fail if $bool is false, $name is optional but recommended.
UTILS
These utils are exported in addition to the testers, they do not produce any results.
- bail_out( @reasons )
-
Tell fennec to stop everything, somethings wrong, just stop.
- TODO(sub { ... }; $reason)
- TODO { ... } $reason
- TODO { ... }
-
Run the code block, any results generated within will be marked as todo. This means any failures will not lead to an overall suite failure.
- diag( @messages )
-
Generate a diagnostics message.
AUTHORS
Chad Granum exodist7@gmail.com
COPYRIGHT
Copyright (C) 2010 Chad Granum
Fennec is free software; Standard perl licence.
Fennec is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.