Unravel Engine C++ Reference
Loading...
Searching...
No Matches
tests_helper.h File Reference
#include <chrono>
#include <numeric>
#include <random>

Go to the source code of this file.

Classes

struct  helper::is_chrono_duration< T >
 
struct  helper::is_chrono_duration< std::chrono::duration< R, P > >
 

Namespaces

namespace  helper
 
namespace  helper::details
 

Functions

auto helper::details::rd_gen () -> std::mt19937 &
 
template<typename T , std::enable_if_t< is_chrono_duration< T >::value, void * > = nullptr>
auto helper::random_value (T min, T max) -> T
 
template<typename T >
helper::random_value ()
 
template<typename T , std::enable_if_t< std::is_integral< T >::value, void * > = nullptr>
auto helper::compare (const T &a, const T &b) -> bool
 
template<typename T , std::enable_if_t< std::is_floating_point< T >::value, void * > = nullptr>
auto helper::compare (const T &a, const T &b, T epsilon=T(0.001)) -> bool