Skip to content

Commit

Permalink
Merge branch 'MDL-77036-401' of https://github.com/lameze/moodle into…
Browse files Browse the repository at this point in the history
… MOODLE_401_STABLE
  • Loading branch information
junpataleta committed Jan 25, 2023
2 parents 6d90fc7 + 6bf5c32 commit 5e75da7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iplookup/tests/geoplugin_test.php
Expand Up @@ -45,12 +45,12 @@ public function test_ipv4() {
$result = iplookup_find_location('50.0.184.0');

$this->assertEquals('array', gettype($result));
$this->assertEquals('San Francisco', $result['city']);
$this->assertEqualsWithDelta(-122.3933, $result['longitude'], 0.1, 'Coordinates are out of accepted tolerance');
$this->assertEqualsWithDelta(37.7697, $result['latitude'], 0.1, 'Coordinates are out of accepted tolerance');
$this->assertEquals('Santa Rosa', $result['city']);
$this->assertEqualsWithDelta(-122.7128, $result['longitude'], 0.1, 'Coordinates are out of accepted tolerance');
$this->assertEqualsWithDelta(38.4354, $result['latitude'], 0.1, 'Coordinates are out of accepted tolerance');
$this->assertNull($result['error']);
$this->assertEquals('array', gettype($result['title']));
$this->assertEquals('San Francisco', $result['title'][0]);
$this->assertEquals('Santa Rosa', $result['title'][0]);
$this->assertEquals('United States', $result['title'][1]);
}

Expand Down

0 comments on commit 5e75da7

Please sign in to comment.