Skip to content

Commit

Permalink
MDL-56331 tests: update with current coordinates
Browse files Browse the repository at this point in the history
The previous commit will minor updates to pass, but this updates
to current values.
  • Loading branch information
danpoltawski committed Oct 10, 2016
1 parent 0b73876 commit a4a815f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iplookup/tests/geoip_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public function test_ipv4() {

$this->assertEquals('array', gettype($result));
$this->assertEquals('Cambridge', $result['city']);
$this->assertEquals(0.1249, $result['longitude'], 'Coordinates are out of accepted tolerance', 0.01);
$this->assertEquals(52.191000000000003, $result['latitude'], 'Coordinates are out of accepted tolerance', 0.01);
$this->assertEquals(0.1167, $result['longitude'], 'Coordinates are out of accepted tolerance', 0.01);
$this->assertEquals(52.2, $result['latitude'], 'Coordinates are out of accepted tolerance', 0.01);
$this->assertNull($result['error']);
$this->assertEquals('array', gettype($result['title']));
$this->assertEquals('Cambridge', $result['title'][0]);
Expand All @@ -100,8 +100,8 @@ public function test_ipv6() {

$this->assertEquals('array', gettype($result));
$this->assertEquals('Lancaster', $result['city']);
$this->assertEquals(-2.79970, $result['longitude'], 'Coordinates are out of accepted tolerance', 0.01);
$this->assertEquals(54.04650, $result['latitude'], 'Coordinates are out of accepted tolerance', 0.01);
$this->assertEquals(-2.7997, $result['longitude'], 'Coordinates are out of accepted tolerance', 0.01);
$this->assertEquals(54.0465, $result['latitude'], 'Coordinates are out of accepted tolerance', 0.01);
$this->assertNull($result['error']);
$this->assertEquals('array', gettype($result['title']));
$this->assertEquals('Lancaster', $result['title'][0]);
Expand Down

0 comments on commit a4a815f

Please sign in to comment.