Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
More wrong line endings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Getty committed Jul 9, 2012
1 parent ada9b24 commit 3607c8f
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 58 deletions.
44 changes: 22 additions & 22 deletions t/10-meta.t
@@ -1,22 +1,22 @@
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use utf8;

use FindBin qw($Bin);
use lib "$Bin/lib";

use DDG::Test::Goodie;

ddg_goodie_test(
[qw(
DDGTest::Goodie::Location
DDGTest::Goodie::Request
)],
"my location", test_zci("United States Pennsylvania Phoenixville", answer_type => 'location'),
" my request ", test_zci(" my request ", answer_type => 'request'),
);

done_testing;
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use utf8;

use FindBin qw($Bin);
use lib "$Bin/lib";

use DDG::Test::Goodie;

ddg_goodie_test(
[qw(
DDGTest::Goodie::Location
DDGTest::Goodie::Request
)],
"my location", test_zci("United States Pennsylvania Phoenixville", answer_type => 'location'),
" my request ", test_zci(" my request ", answer_type => 'request'),
);

done_testing;
72 changes: 36 additions & 36 deletions t/20-location.t
@@ -1,36 +1,36 @@
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use utf8;

use FindBin qw($Bin);
use lib "$Bin/lib";

use DDG::Test::Goodie;
use DDG::Test::Location;
use DDG::Request;

zci answer_type => 'location';

my @location_tests = (
de => 'Germany Nordrhein-Westfalen Mönchengladbach',
my => 'Malaysia Kuala Lumpur Kuala Lumpur',
in => 'India Delhi New Delhi',
);

while (@location_tests) {
my $location_key = shift @location_tests;
my $expected_reply = shift @location_tests;
my $loc = test_location($location_key);
my $req = DDG::Request->new( query_raw => "my location", location => $loc );
ddg_goodie_test(
[qw(
DDGTest::Goodie::Location
)],
$req, test_zci($expected_reply),
);
}

done_testing;
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use utf8;

use FindBin qw($Bin);
use lib "$Bin/lib";

use DDG::Test::Goodie;
use DDG::Test::Location;
use DDG::Request;

zci answer_type => 'location';

my @location_tests = (
de => 'Germany Nordrhein-Westfalen Mönchengladbach',
my => 'Malaysia Kuala Lumpur Kuala Lumpur',
in => 'India Delhi New Delhi',
);

while (@location_tests) {
my $location_key = shift @location_tests;
my $expected_reply = shift @location_tests;
my $loc = test_location($location_key);
my $req = DDG::Request->new( query_raw => "my location", location => $loc );
ddg_goodie_test(
[qw(
DDGTest::Goodie::Location
)],
$req, test_zci($expected_reply),
);
}

done_testing;

0 comments on commit 3607c8f

Please sign in to comment.