# $Id: Assert.pm,v 1.3 2003/09/11 15:57:29 andy Exp $
use strict;
require Exporter;
$VERSION = '0.02';
=head1 NAME
Test::Harness::Assert - simple assert
=head1 SYNOPSIS
### FOR INTERNAL USE ONLY ###
use Test::Harness::Assert;
assert( EXPR, $name );
=head1 DESCRIPTION
A simple assert routine since we don't have Carp::Assert handy.
B<For internal use by Test::Harness ONLY!>
=head1 FUNCTIONS
=head2 C<assert()>
assert( EXPR, $name );
If the expression is false the program aborts.
=cut
sub assert ($;$) {
unless( $assert ) {
require Carp;
my $msg = 'Assert failed';
$msg .= '!';
}
}
=head1 AUTHOR
Michael G Schwern C<< <schwern@pobox.com> >>
=head1 SEE ALSO
L<Carp::Assert>
=cut
1;