OpenKalman
Classes | Functions
tests.hpp File Reference
#include <type_traits>
#include <tuple>
#include <string>
#include <gtest/gtest.h>
#include "collections/concepts/tuple_like.hpp"
Include dependency graph for tests.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  OpenKalman::test::TestComparison< Arg1, Arg2, Err, typename >
 

Functions

template<typename Arg1 , typename Arg2 , typename Err >
 OpenKalman::test::TestComparison (const Arg1 &, const Arg2 &, const Err &) -> TestComparison< Arg1, Arg2, Err >
 
template<typename Arg1 , typename Arg2 , typename Err = double>
inline ::testing::AssertionResult OpenKalman::test::is_near (const Arg1 &arg1, const Arg2 &arg2, const Err &err=1e-6)
 Determine if two objects are "near" each other, within a margin of error. More...
 

Function Documentation

◆ is_near()

template<typename Arg1 , typename Arg2 , typename Err = double>
inline ::testing::AssertionResult OpenKalman::test::is_near ( const Arg1 &  arg1,
const Arg2 &  arg2,
const Err &  err = 1e-6 
)

Determine if two objects are "near" each other, within a margin of error.

Parameters
arg1The first object
arg2The second object
errThe margin of error
Returns