[libc-commits] [PATCH] D79256: [libc] Improve information printed on failure of a math test which uses MPFR.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri May 1 17:16:43 PDT 2020


sivachandra created this revision.
sivachandra added reviewers: abrachet, phosek.
Herald added subscribers: libc-commits, tschuett, mgorny.
Herald added a project: libc-project.

A new base test class named mpfr::Test is added. A new test condition
named Cond_Extension is also added. This allows custom functions to
verify results and report useful information on failure.

New type traits classes RemoveCV and IsFloatingPointType have been
added and used to implement the comparision function in mpfr::Test.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79256

Files:
  libc/test/src/math/cosf_test.cpp
  libc/test/src/math/sincosf_test.cpp
  libc/test/src/math/sinf_test.cpp
  libc/utils/CPP/TypeTraits.h
  libc/utils/MPFRWrapper/CMakeLists.txt
  libc/utils/MPFRWrapper/MPFRUtils.cpp
  libc/utils/MPFRWrapper/MPFRUtils.h
  libc/utils/UnitTest/Test.cpp
  libc/utils/UnitTest/Test.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79256.261518.patch
Type: text/x-patch
Size: 17140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200502/74a6a5b4/attachment-0001.bin>


More information about the libc-commits mailing list