Skip to content
Browse files

added a test for empty params on constructor

  • Loading branch information...
1 parent 82cfee2 commit a62ac408042a5220cce7f04bcadb1b28fa37d3a5 @russoz committed Nov 8, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 t/02.store.t
View
7 t/02.store.t
@@ -1,4 +1,4 @@
-use Test::More tests => 2;
+use Test::More tests => 3;
use Net::LDAP::SimpleServer::LDIFStore;
@@ -23,6 +23,9 @@ diag("Testing the constructor params for LDIFStore\n");
my $obj = undef;
#$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');
-$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.
Something went wrong with that request. Please try again.