summaryrefslogtreecommitdiff
path: root/libc/test/src/math/fminf_test.cpp
AgeCommit message (Collapse)Author
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2021-04-16[libc][NFC] Add template tests for a bunch of math functions.Siva Chandra Reddy
Namely, template tests have been added for the following functions: ceil, copysign, fabs, fmax, fmin, floor, trunc, round.
2021-01-20[libc][NFC] add "LlvmLibc" as a prefix to all test namesMichael Jones
Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers:
2020-12-17[libc][NFC] Use ASSERT_FP_EQ to comapre NaN values in tests.Siva Chandra Reddy
This is a continuation of the previous CL which did a similar change in other tests. To elaborate a little about why we need this - under C++ compilation with headers not from LLVM libc, libraries like libc++ and libstdc++ provide their own math.h which undefine macros like `isnan` and provide the overloaded C++ isnan functions which return a boolean value instead of an integer value returned by the isnan macro.
2020-12-15[libc][NFC] Rename global `nan` in tests to `aNaN`.Siva Chandra Reddy
The name `nan` conflicts with the function `nan` defined declared in math.h.
2020-11-21[libc] Switch functions to using global headersMichael Jones
This switches all of the files in src/string, src/math, and test/src/math from using relative paths (e.g. `#include “include/string.h”`) to global paths (e.g. `#include <string.h>`) to make bringing up those functions on other platforms, such as fuchsia, easier. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D91394
2020-11-03[libc][NFC][Obvious] Use the new macro to declare special constants in tests.Siva Chandra Reddy
2020-08-07[libc][NFC] Add library of floating point test matchers.Siva Chandra Reddy
This eliminates UnitTest's dependency on FPUtil and hence prevents non-math tests from depending indirectly on FPUtil. The patch essentially moves some of the existing pieces into a library of its own. Along the way, renamed add_math_unittest to add_fp_unittest. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D85486
2020-07-23[libc] Remove unused #include <vector> in fmin_test, fminf_test, and fminl_test.Tue Ly
2020-07-21Add implementations for fmin, fminf, and fminl. Testing infrastructure ↵Tue Ly
update is splitted to https://reviews.llvm.org/D83931.