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

Classes

struct  Utopia::Models::Opinionet::Utils::Infrastructure
 
struct  Utopia::Models::Opinionet::Utils::TestNetworkU
 
struct  Utopia::Models::Opinionet::Utils::TestNetworkD
 
struct  Utopia::Models::Opinionet::Utils::TestNetworkD_small
 

Namespaces

namespace  Utopia
 
namespace  Utopia::Models
 
namespace  Utopia::Models::Opinionet
 
namespace  Utopia::Models::Opinionet::Utils
 

Macros

#define BOOST_TEST_MODULE   utilities test
 

Functions

 Utopia::Models::Opinionet::Utils::BOOST_FIXTURE_TEST_CASE (test_get_rand, Infrastructure)
 
 Utopia::Models::Opinionet::Utils::BOOST_AUTO_TEST_CASE (test_is_directed)
 
 Utopia::Models::Opinionet::Utils::BOOST_FIXTURE_TEST_CASE (test_get_rand_neighbor, TestNetworkU)
 
 Utopia::Models::Opinionet::Utils::BOOST_FIXTURE_TEST_CASE (test_set_and_normalize_weights, TestNetworkD, *boost::unit_test::tolerance(1e-12))
 
 Utopia::Models::Opinionet::Utils::BOOST_FIXTURE_TEST_CASE (test_select_neighbour, TestNetworkD_small, *boost::unit_test::tolerance(1.0))
 

Variables

std::uniform_real_distribution< doubleUtopia::Models::Opinionet::Utils::uniform_prob_distr
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   utilities test