Meta::Development::Assert - object to inherit verbose objects from.
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program 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 GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
MANIFEST: Assert.pm PROJECT: meta VERSION: 0.00
package foo; use Meta::Development::Assert qw(); Meta::Development::Assert::assert_meq(3+4,7);
This module is a set of functions to ease making assertions in the code and handling the result of a failed assertion in a centralized manner. The modules default behaviour is to throw an Error::Simple exception whenever an assertion fails.
assert_true($$) assert_false($$) assert_eq($$$) assert_ne($$$) assert_ge($$$) assert_gt($$$) assert_le($$$) assert_lt($$$) assert_seq($$$) assert_sne($$$) assert_isa($$$) is_number($) TEST($)
Assert that the value passed is indeed true.
Assert that the value passed is indeed false.
Assert that two numerical values are equal.
Assert that two numerical values are different.
Assert that one numeric value is greater or equal to the other.
Assert that one numeric value is greater than the other.
Assert that one numeric value is less or equal to the other.
Assert that one numeric value is less than the other.
Assert that two values are the same string.
Assert that two values are not the same string.
Assert that an object is of a certain type.
Assert that the string given is a number.
This is a testing suite for the Meta::Development::Assert module. This test is should be run by a higher level management system at integration or release time or just as a regular routine to check that all is well.
Currently this test suite just makes a simple assertion.
None.
Name: Mark Veltzer Email: mailto:veltzer@cpan.org WWW: http://www.veltzer.org CPAN id: VELTZER
0.00 MV md5 issues
Error(3), strict(3)
Nothing.
To install Meta::Init, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Meta::Init
CPAN shell
perl -MCPAN -e shell install Meta::Init
For more information on module installation, please visit the detailed CPAN module installation guide.