com php-src: Avoid exact floating point comparison: ext/date/tests/timezone_location_get.phpt

[email protected] (Joe Watkins)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    9b7f13cb1b750d2dcac441945ab7cc1600fc080b
Author:    Steve Walk <[email protected]>         Tue, 18 Apr 2017 08:43:03 -0700
Committer: Joe Watkins <[email protected]>      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"]=>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.