[libcxx-commits] [PATCH] D61748: [libc++] [test] Use std::nextafter() instead of std::nexttoward()

Michał Górny via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 14 06:55:18 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL360673: [libc++] [test] Use std::nextafter() instead of std::nexttoward() (authored by mgorny, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D61748?vs=198881&id=199433#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61748/new/

https://reviews.llvm.org/D61748

Files:
  libcxx/trunk/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp


Index: libcxx/trunk/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
===================================================================
--- libcxx/trunk/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
+++ libcxx/trunk/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
@@ -76,8 +76,8 @@
 
 //  Check two values "close to each other"
     T d1 = 3.14;
-    T d0 = std::nexttoward(d1, T(2));
-    T d2 = std::nexttoward(d1, T(5));
+    T d0 = std::nextafter(d1, T(2));
+    T d2 = std::nextafter(d1, T(5));
     assert(d0 < d1);  // sanity checking
     assert(d1 < d2);  // sanity checking
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61748.199433.patch
Type: text/x-patch
Size: 669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190514/fe0d6ce0/attachment.bin>


More information about the libcxx-commits mailing list