mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
Floating-Point Utilities Unit Tests

Functions

 TEST_CASE ("Floating-point classification handles finite and nonfinite values", "[math::floatUtils]")
 Verify floating-point classification for finite and nonfinite values.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "Floating-point classification handles finite and nonfinite values" ,
"" [math::floatUtils] )

Verify floating-point classification for finite and nonfinite values.

Exercises the NaN and finite-value classifiers for float, double, and long double. The same test applies to standard and fast-math builds.

Definition at line 18 of file floatUtils_test.cpp.

References mx::math::isFinite(), and mx::math::isNan().