diff options
author | franck cuny <franck@lumberjaph.net> | 2011-02-08 15:48:56 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2011-02-08 15:48:56 +0100 |
commit | d190fc2612ba50bc32cc42fd3a188a89ac3aa6bf (patch) | |
tree | 43f6dfaa73c21894f2993f186a74859ff6f3584f /t | |
parent | switch to dzilla (diff) | |
download | webservice-google-suggest-d190fc2612ba50bc32cc42fd3a188a89ac3aa6bf.tar.gz |
fix tests
Diffstat (limited to 't')
-rw-r--r-- | t/01_suggest.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/01_suggest.t b/t/01_suggest.t index 5660d24..24c24a1 100644 --- a/t/01_suggest.t +++ b/t/01_suggest.t @@ -9,6 +9,6 @@ isa_ok($suggest->ua, "LWP::UserAgent", "ua() retuens LWP"); my @data = $suggest->complete("google"); is($data[0]->{query}, "google maps", "google completes to google maps"); -ok($data[0]->{results}, "google has more than 0 results"); +is($data[0]->{rank}, 0, "google is first"); is_deeply( [ $suggest->complete("udfg67a") ], [ ], "empty list" ); |