Skip to content

Commit

Permalink
added a test for empty params on constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
russoz committed Nov 8, 2010
1 parent 82cfee2 commit a62ac40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions t/02.store.t
@@ -1,4 +1,4 @@
use Test::More tests => 2; use Test::More tests => 3;


use Net::LDAP::SimpleServer::LDIFStore; use Net::LDAP::SimpleServer::LDIFStore;


Expand All @@ -23,6 +23,9 @@ diag("Testing the constructor params for LDIFStore\n");
my $obj = undef; my $obj = undef;


#$obj = new_ok( 'Net::LDAP::SimpleServer::LDIFStore', [ 'name/of/a/file/that/will/never/ever/exist.ldif' ] ); #$obj = new_ok( 'Net::LDAP::SimpleServer::LDIFStore', [ 'name/of/a/file/that/will/never/ever/exist.ldif' ] );
check_param_failure('');
check_param_failure('name/of/a/file/that/will/never/ever/exist.ldif'); check_param_failure('name/of/a/file/that/will/never/ever/exist.ldif');
$obj = new_ok( 'Net::LDAP::SimpleServer::LDIFStore', ['examples/test1.ldif'] ); $obj =
new_ok( 'Net::LDAP::SimpleServer::LDIFStore',
['examples/single-entry.ldif'] );


0 comments on commit a62ac40

Please sign in to comment.