#include <type_traits>
#include <tuple>
#include <string>
#include <gtest/gtest.h>
#include "collections/concepts/tuple_like.hpp"
Go to the source code of this file.
|
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...
|
|
◆ 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
-
arg1 | The first object |
arg2 | The second object |
err | The margin of error |
- Returns