]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/regressions/inc/Test/Harness/Assert.pm
1 package Test
::Harness
::Assert
;
5 use vars
qw($VERSION @EXPORT @ISA);
15 Test::Harness::Assert - simple assert
19 ### FOR INTERNAL USE ONLY ###
21 use Test::Harness::Assert;
23 assert( EXPR, $name );
27 A simple assert routine since we don't have Carp::Assert handy.
29 B<For internal use by Test::Harness ONLY!>
35 assert( EXPR, $name );
37 If the expression is false the program aborts.
42 my($assert, $name) = @_;
46 my $msg = 'Assert failed';
47 $msg .= " - '$name'" if defined $name;
56 Michael G Schwern C<< <schwern at pobox.com> >>