Utopia 2
Framework for studying models of complex & adaptive systems.
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
test_utils.cc File Reference
#include <cmath>
#include <random>
#include <vector>
#include <armadillo>
#include <boost/test/unit_test.hpp>
#include <utopia/core/model.hh>
#include <utopia/core/testtools.hh>
#include "../SimpleFlocking.hh"
#include "../utils.hh"
Include dependency graph for test_utils.cc:

Classes

struct  Utopia::Models::SimpleFlocking::Infrastructure
 

Namespaces

namespace  Utopia
 
namespace  Utopia::Models
 
namespace  Utopia::Models::SimpleFlocking
 

Macros

#define BOOST_TEST_MODULE   utils test
 

Functions

 Utopia::Models::SimpleFlocking::BOOST_AUTO_TEST_SUITE (test_angles)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(+1.)==+1.)
 Assert the basic working of the regularisation function for angles.
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(-1.)==-1.)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(+M_PI)==-M_PI)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(-M_PI)==-M_PI)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(+3 *M_PI)==-M_PI)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(-3 *M_PI)==-M_PI)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(+2 *M_PI)==0.)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(+4 *M_PI)==0.)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(+40 *M_PI)==0.)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(-2 *M_PI)==0.)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(-4 *M_PI)==0.)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(-40 *M_PI)==0.)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(+M_PI+1.)==-M_PI+1.)
 
 Utopia::Models::SimpleFlocking::BOOST_TEST (constrain_angle(-M_PI - 1.)==+M_PI - 1.)
 
 Utopia::Models::SimpleFlocking::BOOST_FIXTURE_TEST_CASE (test_random_angle, Infrastructure)
 Assert that there is no bias in the random angle function.
 
 Utopia::Models::SimpleFlocking::BOOST_AUTO_TEST_SUITE_END ()
 
 Utopia::Models::SimpleFlocking::BOOST_AUTO_TEST_SUITE (test_geometry)
 
 Utopia::Models::SimpleFlocking::BOOST_AUTO_TEST_CASE (test_absolute_group_velocity)
 
 Utopia::Models::SimpleFlocking::BOOST_AUTO_TEST_SUITE (test_circular_stats)
 
 Utopia::Models::SimpleFlocking::BOOST_AUTO_TEST_CASE (test_circular_mean)
 Tests the circular_mean function.
 
 Utopia::Models::SimpleFlocking::BOOST_AUTO_TEST_CASE (test_circular_mean_and_std)
 Tests the circular_mean_and_std function.
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   utils test