com php-src: Avoid exact floating point comparison: ext/date/tests/timezone_location_get.phpt
| From: | Joe Watkins | Date: | Thu, 20 Apr 2017 05:42:20 +0000 |
| Subject: | com php-src: Avoid exact floating point comparison: ext/date/tests/timezone_location_get.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97654@lists.php.net to get a copy of this message | ||
Commit: 9b7f13cb1b750d2dcac441945ab7cc1600fc080b
Author: Steve Walk <steve.walk@cavium.com> Tue, 18 Apr 2017 08:43:03 -0700
Committer: Joe Watkins <krakjoe@php.net> Thu, 20 Apr 2017 06:42:20 +0100
Parents: 464742bd2a9ce765d8b0be4ba6897c3e5accd6fe
Branches: PHP-7.0 PHP-7..1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9b7f13cb1b750d2dcac441945ab7cc1600fc080b
Log:
Avoid exact floating point comparison
Changed paths:
M ext/date/tests/timezone_location_get.phpt
Diff:
diff --git a/ext/date/tests/timezone_location_get.phpt b/ext/date/tests/timezone_location_get.phpt
index 745fc87..93f7ed6 100644
--- a/ext/date/tests/timezone_location_get.phpt
+++ b/ext/date/tests/timezone_location_get.phpt
@@ -10,12 +10,12 @@ date.timezone=UTC
$location = timezone_location_get(new DateTimeZone("Europe/Oslo"));
var_dump($location);
?>
---EXPECT--
+--EXPECTF--
array(4) {
["country_code"]=>
string(2) "NO"
["latitude"]=>
- float(59.91666)
+ float(59.9166%d)
["longitude"]=>
float(10..75)
["comments"]=>