IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 23, 2007, 10:42:29 AM (19 years ago)
Author:
jhoblitt
Message:

ws
add the use of Test::URI in tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/51_client_open_create.t

    r5667 r12960  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 51_client_open_create.t,v 1.1 2005-12-03 02:52:31 jhoblitt Exp $
     5# $Id: 51_client_open_create.t,v 1.2 2007-04-23 20:42:29 jhoblitt Exp $
    66
    77use strict;
     
    1414use lib qw( ./t ./lib );
    1515
     16#use Nebulous::Client trace => 'debug';
    1617use Nebulous::Client;
    17 use Nebulous::Util qw( :standard );
    1818use Test::Nebulous;
    1919
     
    2828    );
    2929
    30     my $fh = $neb->open_create( "foo" );
     30    my $fh = $neb->open_create("foo");
    3131
    32     is( ref $fh, 'GLOB', "good filehandle" );
     32    is(ref $fh, 'GLOB', "good filehandle");
    3333}
    3434
     
    4343    my $fh = $neb->open_create( "foo", 0 );
    4444
    45     is( ref $fh, 'GLOB', "good filehandle" );
     45    is(ref $fh, 'GLOB', "good filehandle");
    4646}
    4747
     
    5454    );
    5555
    56     my $fh = $neb->open_create( "foo", 0, "node01" );
     56    my $fh = $neb->open_create("foo", 0, "node01");
    5757
    58     is( ref $fh, 'GLOB', "good filehandle" );
     58    is(ref $fh, 'GLOB', "good filehandle");
    5959}
    6060
     
    6767    );
    6868
    69     my $fh = $neb->open_create( "foo", 0, "node01", "this is foo" );
     69    my $fh = $neb->open_create("foo", 0, "node01", "this is foo");
    7070
    71     is( ref $fh, 'GLOB', "good filehandle" );
     71    is(ref $fh, 'GLOB', "good filehandle");
    7272}
    7373
     
    7979    );
    8080
    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");
    8383}
    8484
     
    9292    $neb->open_create();
    9393};
    94 like( $@, qr/2 - 4 were expected/, "no params" );
     94like($@, qr/2 - 4 were expected/, "no params");
    9595
    9696Test::Nebulous->setup;
     
    101101    );
    102102
    103     $neb->open_create( 1, 2, 3, 4, 5 );
     103    $neb->open_create(1, 2, 3, 4, 5);
    104104};
    105 like( $@, qr/2 - 4 were expected/, "too many params" );
     105like($@, qr/2 - 4 were expected/, "too many params");
    106106
    107107Test::Nebulous->cleanup;
Note: See TracChangeset for help on using the changeset viewer.