コード例 #1
0
ファイル: GoogleMapsTest.php プロジェクト: n0rthface/Runalyze
 public function testSimplePath()
 {
     $Corrector = new GoogleMaps(array(49.44, 49.441, 49.442, 49.443, 49.444, 49.445, 49.446, 49.447, 49.448, 49.449, 49.45), array(7.76, 7.761, 7.762, 7.763, 7.764, 7.765, 7.766, 7.767, 7.768, 7.769, 7.77));
     if ($Corrector->canHandleData()) {
         $Corrector->correctElevation();
         $this->assertEquals(array(238, 238, 238, 238, 238, 237, 237, 237, 237, 237, 263), $Corrector->getCorrectedElevation());
     } else {
         $this->markTestSkipped('Datasciencetoolkit was not available.');
     }
 }