Changeset 12960 for trunk/Nebulous/t/51_client_open_create.t
- Timestamp:
- Apr 23, 2007, 10:42:29 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/t/51_client_open_create.t (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/t/51_client_open_create.t
r5667 r12960 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 51_client_open_create.t,v 1. 1 2005-12-03 02:52:31jhoblitt Exp $5 # $Id: 51_client_open_create.t,v 1.2 2007-04-23 20:42:29 jhoblitt Exp $ 6 6 7 7 use strict; … … 14 14 use lib qw( ./t ./lib ); 15 15 16 #use Nebulous::Client trace => 'debug'; 16 17 use Nebulous::Client; 17 use Nebulous::Util qw( :standard );18 18 use Test::Nebulous; 19 19 … … 28 28 ); 29 29 30 my $fh = $neb->open_create( "foo");30 my $fh = $neb->open_create("foo"); 31 31 32 is( ref $fh, 'GLOB', "good filehandle");32 is(ref $fh, 'GLOB', "good filehandle"); 33 33 } 34 34 … … 43 43 my $fh = $neb->open_create( "foo", 0 ); 44 44 45 is( ref $fh, 'GLOB', "good filehandle");45 is(ref $fh, 'GLOB', "good filehandle"); 46 46 } 47 47 … … 54 54 ); 55 55 56 my $fh = $neb->open_create( "foo", 0, "node01");56 my $fh = $neb->open_create("foo", 0, "node01"); 57 57 58 is( ref $fh, 'GLOB', "good filehandle");58 is(ref $fh, 'GLOB', "good filehandle"); 59 59 } 60 60 … … 67 67 ); 68 68 69 my $fh = $neb->open_create( "foo", 0, "node01", "this is foo");69 my $fh = $neb->open_create("foo", 0, "node01", "this is foo"); 70 70 71 is( ref $fh, 'GLOB', "good filehandle");71 is(ref $fh, 'GLOB', "good filehandle"); 72 72 } 73 73 … … 79 79 ); 80 80 81 $neb->open_create( "foo");82 is( $neb->open_create( "foo" ), undef, "object already exists");81 $neb->open_create("foo"); 82 is($neb->open_create("foo"), undef, "object already exists"); 83 83 } 84 84 … … 92 92 $neb->open_create(); 93 93 }; 94 like( $@, qr/2 - 4 were expected/, "no params");94 like($@, qr/2 - 4 were expected/, "no params"); 95 95 96 96 Test::Nebulous->setup; … … 101 101 ); 102 102 103 $neb->open_create( 1, 2, 3, 4, 5);103 $neb->open_create(1, 2, 3, 4, 5); 104 104 }; 105 like( $@, qr/2 - 4 were expected/, "too many params");105 like($@, qr/2 - 4 were expected/, "too many params"); 106 106 107 107 Test::Nebulous->cleanup;
Note:
See TracChangeset
for help on using the changeset viewer.
