IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2871


Ignore:
Timestamp:
Jan 3, 2005, 1:52:44 PM (22 years ago)
Author:
jhoblitt
Message:

test to see if URIs point to something valid

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/t/16_client_find_instances.t

    r2870 r2871  
    66use Apache::Test qw( -withtestmore );
    77
    8 plan tests => 13;
     8plan tests => 19;
    99
    1010use lib qw( ./t ./lib );
     
    2929    is( scalar @$locations, 1, "found 1" );
    3030    like( @$locations[0], qr/file:/, "URIs match" );
     31    ok( -e _get_file_path( @$locations[0] ), "URI matches file" );
    3132}
    3233
     
    4647    like( @$locations[0], qr/file:/, "URIs match" );
    4748    like( @$locations[1], qr/file:/, "URIs match" );
     49    ok( -e _get_file_path( @$locations[0] ), "URI matches file" );
     50    ok( -e _get_file_path( @$locations[1] ), "URI matches file" );
    4851}
    4952
     
    6164    is( scalar @$locations, 1, "found 1" );
    6265    like( @$locations[0], qr/file:/, "URIs match" );
     66    ok( -e _get_file_path( @$locations[0] ), "URI matches file" );
    6367}
    6468
     
    7882    like( @$locations[0], qr/file:/, "URIs match" );
    7983    like( @$locations[1], qr/file:/, "URIs match" );
     84    ok( -e _get_file_path( @$locations[0] ), "URI matches file" );
     85    ok( -e _get_file_path( @$locations[1] ), "URI matches file" );
    8086}
    81 
    8287
    8388Test::IData->setup;
  • trunk/Nebulous/t/16_client_find_instances.t

    r2870 r2871  
    66use Apache::Test qw( -withtestmore );
    77
    8 plan tests => 13;
     8plan tests => 19;
    99
    1010use lib qw( ./t ./lib );
     
    2929    is( scalar @$locations, 1, "found 1" );
    3030    like( @$locations[0], qr/file:/, "URIs match" );
     31    ok( -e _get_file_path( @$locations[0] ), "URI matches file" );
    3132}
    3233
     
    4647    like( @$locations[0], qr/file:/, "URIs match" );
    4748    like( @$locations[1], qr/file:/, "URIs match" );
     49    ok( -e _get_file_path( @$locations[0] ), "URI matches file" );
     50    ok( -e _get_file_path( @$locations[1] ), "URI matches file" );
    4851}
    4952
     
    6164    is( scalar @$locations, 1, "found 1" );
    6265    like( @$locations[0], qr/file:/, "URIs match" );
     66    ok( -e _get_file_path( @$locations[0] ), "URI matches file" );
    6367}
    6468
     
    7882    like( @$locations[0], qr/file:/, "URIs match" );
    7983    like( @$locations[1], qr/file:/, "URIs match" );
     84    ok( -e _get_file_path( @$locations[0] ), "URI matches file" );
     85    ok( -e _get_file_path( @$locations[1] ), "URI matches file" );
    8086}
    81 
    8287
    8388Test::IData->setup;
Note: See TracChangeset for help on using the changeset viewer.