field checks
This commit is contained in:
parent
618288f097
commit
b7770e5709
@ -28,18 +28,16 @@ class AcarsTest extends TestCase
|
|||||||
$fields = array_merge([
|
$fields = array_merge([
|
||||||
'name',
|
'name',
|
||||||
'order',
|
'order',
|
||||||
#'lat',
|
'lat',
|
||||||
#'lon'
|
'lon'
|
||||||
], $addtl_fields);
|
], $addtl_fields);
|
||||||
|
|
||||||
$this->assertEquals(\count($route), \count($points));
|
$this->assertEquals(\count($route), \count($points));
|
||||||
foreach($route as $idx => $point) {
|
foreach($route as $idx => $point) {
|
||||||
//$this->assertHasKeys($points[$idx], $fields);
|
$this->assertHasKeys($points[$idx], $fields);
|
||||||
foreach($fields as $f) {
|
foreach($fields as $f) {
|
||||||
if($f === 'lat' || $f === 'lon') {
|
if($f === 'lat' || $f === 'lon') {
|
||||||
continue;
|
continue;
|
||||||
#$point[$f] = round($point[$f], 1);
|
|
||||||
#$points[$idx][$f] = round($points[$idx][$f], 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->assertEquals($point[$f], $points[$idx][$f]);
|
$this->assertEquals($point[$f], $points[$idx][$f]);
|
||||||
|
Loading…
Reference in New Issue
Block a user