MRPT  2.0.4
Functions
bits_math_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/core/bits_math.h>

Go to the source code of this file.

Functions

 TEST (bits_math, sign)
 
 TEST (bits_math, keep_min)
 
 TEST (bits_math, keep_max)
 
 TEST (bits_math, round2up)
 
 TEST (bits_math, hypot_fast)
 
 TEST (bits_math, deg_rad)
 
 TEST (bits_math, signWithZero)
 
 TEST (bits_math, abs_diff)
 
 TEST (bits_math, min3)
 
 TEST (bits_math, max3)
 
 TEST (bits_math, fix)
 
 TEST (bits_math, saturate_val)
 
 TEST (bits_math, saturate)
 
 TEST (bits_math, lowestPositive)
 

Function Documentation

◆ TEST() [1/14]

TEST ( bits_math  ,
abs_diff   
)

Definition at line 87 of file bits_math_unittest.cpp.

References mrpt::abs_diff(), and EXPECT_EQ().

◆ TEST() [2/14]

TEST ( bits_math  ,
deg_rad   
)

Definition at line 57 of file bits_math_unittest.cpp.

References mrpt::d2f(), mrpt::DEG2RAD(), EXPECT_NEAR(), M_PI, and mrpt::RAD2DEG().

◆ TEST() [3/14]

TEST ( bits_math  ,
fix   
)

Definition at line 113 of file bits_math_unittest.cpp.

References EXPECT_EQ(), and mrpt::fix().

◆ TEST() [4/14]

TEST ( bits_math  ,
hypot_fast   
)

Definition at line 51 of file bits_math_unittest.cpp.

References EXPECT_NEAR(), and mrpt::hypot_fast().

◆ TEST() [5/14]

TEST ( bits_math  ,
keep_max   
)

Definition at line 33 of file bits_math_unittest.cpp.

References EXPECT_EQ(), and mrpt::keep_max().

◆ TEST() [6/14]

TEST ( bits_math  ,
keep_min   
)

Definition at line 23 of file bits_math_unittest.cpp.

References EXPECT_EQ(), and mrpt::keep_min().

◆ TEST() [7/14]

TEST ( bits_math  ,
lowestPositive   
)

Definition at line 140 of file bits_math_unittest.cpp.

References EXPECT_EQ(), and mrpt::lowestPositive().

◆ TEST() [8/14]

TEST ( bits_math  ,
max3   
)

Definition at line 104 of file bits_math_unittest.cpp.

References EXPECT_EQ(), and mrpt::max3().

◆ TEST() [9/14]

TEST ( bits_math  ,
min3   
)

Definition at line 95 of file bits_math_unittest.cpp.

References EXPECT_EQ(), and mrpt::min3().

◆ TEST() [10/14]

TEST ( bits_math  ,
round2up   
)

Definition at line 44 of file bits_math_unittest.cpp.

References EXPECT_EQ(), and mrpt::round2up().

◆ TEST() [11/14]

TEST ( bits_math  ,
saturate   
)

Definition at line 129 of file bits_math_unittest.cpp.

References mrpt::saturate().

◆ TEST() [12/14]

TEST ( bits_math  ,
saturate_val   
)

Definition at line 121 of file bits_math_unittest.cpp.

References mrpt::saturate_val().

◆ TEST() [13/14]

TEST ( bits_math  ,
sign   
)

Definition at line 13 of file bits_math_unittest.cpp.

References EXPECT_EQ(), and mrpt::sign().

◆ TEST() [14/14]

TEST ( bits_math  ,
signWithZero   
)

Definition at line 77 of file bits_math_unittest.cpp.

References EXPECT_EQ(), and mrpt::signWithZero().




Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 17:54:30 UTC 2020