智慧教务系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
575 B

<?php
declare(strict_types=1);
namespace Location;
use Location\Factory\CoordinateFactory;
use PHPUnit\Framework\TestCase;
class Issue68Test extends TestCase
{
public function testIfIssue68IsFixed(): void
{
$coordinates = CoordinateFactory::fromString('11°17′N 15°50′W');
$expectedLatitude = 11.283333333;
$expectedLongitude = -15.833333333;
$this->assertEqualsWithDelta($expectedLatitude, $coordinates->getLat(), 0.00001);
$this->assertEqualsWithDelta($expectedLongitude, $coordinates->getLng(), 0.00001);
}
}