Ignore:
Timestamp:
11/24/05 07:19:51 (19 years ago)
Author:
thauvin
Message:
  • add matching functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/t/O-02.t

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r46 r49  
    11# $Id$ 
    22 
    3 use Test::More tests => 16; 
     3use Test::More tests => 20; 
    44use File::Temp qw(tempdir); 
    55 
     
    3535print STDERR join(" ", $o->list_datatype); 
    3636 
     37# Testing match rules 
     38ok($o->match_data_type('ozone', 'ozone12.gz'), "String matching setting"); 
     39ok(!$o->match_data_type('ozone', 'foo12.gz'), "String no matching setting"); 
     40 
     41ok($o->find_match_data_type('ozone12.gz'), "is able to find good datatype"); 
     42ok(!$o->find_match_data_type('foo12.gz'), "is able to find good datatype"); 
     43 
     44$o = undef; # Explicit destroy 
    3745system("rm -fr $td");  
Note: See TracChangeset for help on using the changeset viewer.