2006-12-18 12:32:33 +01:00
|
|
|
# Before `make install' is performed this script should be runnable with
|
|
|
|
# `make test'. After `make install' it should work as `perl Lemonldap-NG-Portal-SharedConf.t'
|
|
|
|
|
|
|
|
#########################
|
|
|
|
|
|
|
|
# change 'tests => 1' to 'tests => last_test_to_print';
|
|
|
|
|
2007-04-14 22:38:55 +02:00
|
|
|
use Test::More tests => 3;
|
2007-04-15 14:44:29 +02:00
|
|
|
BEGIN { use_ok('Lemonldap::NG::Portal::SharedConf') }
|
2006-12-18 12:32:33 +01:00
|
|
|
|
|
|
|
#########################
|
|
|
|
|
|
|
|
# Insert your test code below, the Test::More module is use()ed here so read
|
|
|
|
# its man page ( perldoc Test::More ) for help writing this test script.
|
|
|
|
|
2007-04-14 22:38:55 +02:00
|
|
|
my $p = bless {}, 'Lemonldap::NG::Portal::SharedConf';
|
2007-04-15 14:44:29 +02:00
|
|
|
ok( !$p->scanexpr('1 == 0') );
|
|
|
|
ok( $p->scanexpr('1 == 1') );
|
2006-12-18 12:32:33 +01:00
|
|
|
|