Ignore:
Timestamp:
Nov 24, 2005, 8:12:31 PM (16 years ago)
Author:
Earle Martin
Message:

Sorry, I screwed up the last commit - tests pass now. This fixes bug #17.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/38_search_params.t

    r716 r717  
    33use CGI::Wiki::Setup::SQLite;
    44use OpenGuides::Config;
    5 use OpenGuides::SuperSearch;
     5use OpenGuides::Search;
    66use Test::More;
    77
     
    6060$q->param( -name => "latlong_dist", -value => 700    );
    6161my %vars = $q->Vars();
    62 my $search = OpenGuides::SuperSearch->new( config => $config );
     62my $search = OpenGuides::Search->new( config => $config );
    6363$search->run( vars => \%vars, return_output => 1 );
    6464is( $search->{distance_in_metres}, 500,
     
    7474$q->param( -name => "latlong_dist", -value => 700    );
    7575%vars = $q->Vars();
    76 $search = OpenGuides::SuperSearch->new( config => $config );
     76$search = OpenGuides::Search->new( config => $config );
    7777$search->run( vars => \%vars, return_output => 1 );
    7878ok( !defined $search->{distance_in_metres},
     
    8686$q->param( -name => "latlong_dist", -value => 700 );
    8787%vars = $q->Vars();
    88 $search = OpenGuides::SuperSearch->new( config => $config );
     88$search = OpenGuides::Search->new( config => $config );
    8989$search->run( vars => \%vars, return_output => 1 );
    9090is( $search->{distance_in_metres}, 700,
     
    104104$q->param( -name => "latlong_dist", -value => 700    );
    105105%vars = $q->Vars();
    106 $search = OpenGuides::SuperSearch->new( config => $config );
     106$search = OpenGuides::Search->new( config => $config );
    107107$search->run( vars => \%vars, return_output => 1 );
    108108is( $search->{distance_in_metres}, 600,
     
    118118$q->param( -name => "latlong_dist", -value => 700    );
    119119%vars = $q->Vars();
    120 $search = OpenGuides::SuperSearch->new( config => $config );
     120$search = OpenGuides::Search->new( config => $config );
    121121$search->run( vars => \%vars, return_output => 1 );
    122122ok( !defined $search->{distance_in_metres},
     
    130130$q->param( -name => "latlong_dist", -value => 700 );
    131131%vars = $q->Vars();
    132 $search = OpenGuides::SuperSearch->new( config => $config );
     132$search = OpenGuides::Search->new( config => $config );
    133133$search->run( vars => \%vars, return_output => 1 );
    134134is( $search->{distance_in_metres}, 700,
     
    149149$q->param( -name => "latlong_dist", -value => 700    );
    150150%vars = $q->Vars();
    151 $search = OpenGuides::SuperSearch->new( config => $config );
     151$search = OpenGuides::Search->new( config => $config );
    152152$search->run( vars => \%vars, return_output => 1 );
    153153ok( !defined $search->{distance_in_metres},
     
    161161$q->param( -name => "latlong_dist", -value => 700    );
    162162%vars = $q->Vars();
    163 $search = OpenGuides::SuperSearch->new( config => $config );
     163$search = OpenGuides::Search->new( config => $config );
    164164$search->run( vars => \%vars, return_output => 1 );
    165165ok( !defined $search->{distance_in_metres},
     
    173173$q->param( -name => "latlong_dist", -value => 700 );
    174174%vars = $q->Vars();
    175 $search = OpenGuides::SuperSearch->new( config => $config );
     175$search = OpenGuides::Search->new( config => $config );
    176176$search->run( vars => \%vars, return_output => 1 );
    177177is( $search->{distance_in_metres}, 700,
Note: See TracChangeset for help on using the changeset viewer.