aboutsummaryrefslogtreecommitdiffstats
path: root/t/geocode
diff options
context:
space:
mode:
authorM Somerville <matthew-github@dracos.co.uk>2020-11-02 11:20:12 +0000
committerM Somerville <matthew-github@dracos.co.uk>2020-11-08 22:12:46 +0000
commit7359a017d4386c96cf681bb694f207138ebf0bc9 (patch)
tree54f48f0eedef6778ae8f065ab17bd03d08debdbd /t/geocode
parente08f14c4501f315b46c2a45b2f63b572ab650691 (diff)
Ignore Low Bing geocoder results if any higher.
Diffstat (limited to 't/geocode')
-rw-r--r--t/geocode/bing.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/geocode/bing.t b/t/geocode/bing.t
index 32cffaa4e..156f983e1 100644
--- a/t/geocode/bing.t
+++ b/t/geocode/bing.t
@@ -21,4 +21,10 @@ FixMyStreet::override_config {
is $r->{error}[1]{address}, 'Constitution Hill again, London';
};
+my $r = FixMyStreet::Geocode::Bing->string('two results andalow', $c);
+is scalar @{$r->{error}}, 2;
+
+$r = FixMyStreet::Geocode::Bing->string('two results onlylow', $c);
+is scalar @{$r->{error}}, 3;
+
done_testing;