14 #include <gtest/gtest.h> 15 #include "../../include/ecl/math/norms.hpp" 28 TEST(NormTests,euclideanNorm) {
32 TEST(NormTests,euclideanNormFloats) {
39 TEST(NormTests,euclideanNormDoubles) {
46 TEST(NormTests,euclideanNormFunctions) {
61 int main(
int argc,
char **argv) {
62 std::cout <<
"Numeric Limits<float>: " << std::numeric_limits<float>::min() << std::endl;
63 std::cout <<
"Numeric Limits<float>: " << std::numeric_limits<float>::max() << std::endl;
64 testing::InitGoogleTest(&argc,argv);
65 return RUN_ALL_TESTS();
T euclidean_norm(const T &x1, const T &x2)
Function for euclidean norms of dimension 2.
int main(int argc, char **argv)
TEST(NormTests, euclideanNorm)
Functor for euclidean norms.