Skip to content

Commit 97bbed4

Browse files
author
Ryan Mauger
committed
1 parent 4e3d591 commit 97bbed4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/haversine.phpt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--TEST--
2+
haversine() function - bastic test for haversine forumla
3+
--FILE--
4+
<?php
5+
$lon1 = -104.88544
6+
$lat1 = 39.06546
7+
8+
$lon2 = -104.80
9+
$lat2 = lat1
10+
haversine($lat1, $lon2, $lat2, $lon2);
11+
?>
12+
--EXPECT--
13+
float(7.376)

0 commit comments

Comments
 (0)