Namespacified tests aswell
This commit is contained in:
parent
be63652df6
commit
da18c59969
@ -583,7 +583,6 @@ namespace Leonetienne::Eule {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Eule {
|
|
||||||
std::ostream &operator<<(std::ostream &os, const Matrix4x4 &m) {
|
std::ostream &operator<<(std::ostream &os, const Matrix4x4 &m) {
|
||||||
os << std::endl;
|
os << std::endl;
|
||||||
|
|
||||||
@ -610,4 +609,3 @@ namespace Leonetienne::Eule {
|
|||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "Catch2.h"
|
#include "Catch2.h"
|
||||||
#include <Eule/Math.h>
|
#include <Eule/Math.h>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
/** Equivalence classes:
|
/** Equivalence classes:
|
||||||
* -- value > 0
|
* -- value > 0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "Catch2.h"
|
#include "Catch2.h"
|
||||||
#include <Eule/Math.h>
|
#include <Eule/Math.h>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
/** Equivalence classes:
|
/** Equivalence classes:
|
||||||
* -- min < v < max -> v
|
* -- min < v < max -> v
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "Catch2.h"
|
#include "Catch2.h"
|
||||||
#include <Eule/Math.h>
|
#include <Eule/Math.h>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
/** Equivalence classes:
|
/** Equivalence classes:
|
||||||
* -- a < b, 0 < t < 1 -> a < result < b
|
* -- a < b, 0 < t < 1 -> a < result < b
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "Catch2.h"
|
#include "Catch2.h"
|
||||||
#include <Eule/Math.h>
|
#include <Eule/Math.h>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
/** Equivalence classes:
|
/** Equivalence classes:
|
||||||
* -- a < b
|
* -- a < b
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "Catch2.h"
|
#include "Catch2.h"
|
||||||
#include <Eule/Math.h>
|
#include <Eule/Math.h>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
/** Equivalence classes:
|
/** Equivalence classes:
|
||||||
* -- min < v < max
|
* -- min < v < max
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include <Eule/Math.h>
|
#include <Eule/Math.h>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
/** Equivalence classes:
|
/** Equivalence classes:
|
||||||
* a -> numerator
|
* a -> numerator
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <Eule/Math.h>
|
#include <Eule/Math.h>
|
||||||
#include <Eule/Constants.h>
|
#include <Eule/Constants.h>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
// Checks that an oscillation of speed 1 between -1 and 1 is just equal to sin(counter*pi-pi/2)
|
// Checks that an oscillation of speed 1 between -1 and 1 is just equal to sin(counter*pi-pi/2)
|
||||||
TEST_CASE(__FILE__"/Oracle_Sin", "[Math][Oscillate]")
|
TEST_CASE(__FILE__"/Oracle_Sin", "[Math][Oscillate]")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "Catch2.h"
|
#include "Catch2.h"
|
||||||
#include <Eule/Math.h>
|
#include <Eule/Math.h>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
// Checks that the similar function works with an exact comparison -> true
|
// Checks that the similar function works with an exact comparison -> true
|
||||||
TEST_CASE(__FILE__"/Exact_Comparison_True", "[Math][Similar]")
|
TEST_CASE(__FILE__"/Exact_Comparison_True", "[Math][Similar]")
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "../_TestingUtilities/HandyMacros.h"
|
#include "../_TestingUtilities/HandyMacros.h"
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static std::mt19937 rng = std::mt19937((std::random_device())());
|
static std::mt19937 rng = std::mt19937((std::random_device())());
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include <random>
|
#include <random>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static std::mt19937 rng = std::mt19937((std::random_device())());
|
static std::mt19937 rng = std::mt19937((std::random_device())());
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <array>
|
#include <array>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
// Checks that a random integer is never outside the specification, two positive values
|
// Checks that a random integer is never outside the specification, two positive values
|
||||||
TEST_CASE(__FILE__"/Never_Outside_Specification__pos__pos", "[Random][RandomIntRange]")
|
TEST_CASE(__FILE__"/Never_Outside_Specification__pos__pos", "[Random][RandomIntRange]")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "Catch2.h"
|
#include "Catch2.h"
|
||||||
#include <Eule/Random.h>
|
#include <Eule/Random.h>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
// Checks that all values are always 0 <= v <= 1
|
// Checks that all values are always 0 <= v <= 1
|
||||||
TEST_CASE(__FILE__"/Always_Satisfies_0_lt_v_lt_1", "[Random][RandomFloat]")
|
TEST_CASE(__FILE__"/Always_Satisfies_0_lt_v_lt_1", "[Random][RandomFloat]")
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include <Eule/Random.h>
|
#include <Eule/Random.h>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
// Checks that the produced unsigned-integer distribution shows a big standard deviation
|
// Checks that the produced unsigned-integer distribution shows a big standard deviation
|
||||||
TEST_CASE(__FILE__"/Uint_Big_Standard_Deviation", "[Random][RandomInt]")
|
TEST_CASE(__FILE__"/Uint_Big_Standard_Deviation", "[Random][RandomInt]")
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include <Eule/Random.h>
|
#include <Eule/Random.h>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
// Checks that a random double is never outside the specification, two positive values
|
// Checks that a random double is never outside the specification, two positive values
|
||||||
TEST_CASE(__FILE__"/Random_Doublerange_Never_Outside_Specification__pos__pos", "[Random][RandomRange]")
|
TEST_CASE(__FILE__"/Random_Doublerange_Never_Outside_Specification__pos__pos", "[Random][RandomRange]")
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <random>
|
#include <random>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
using TPC = TrapazoidalPrismCollider;
|
using TPC = TrapazoidalPrismCollider;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include <random>
|
#include <random>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static std::mt19937 rng = std::mt19937((std::random_device())());
|
static std::mt19937 rng = std::mt19937((std::random_device())());
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "../_TestingUtilities/HandyMacros.h"
|
#include "../_TestingUtilities/HandyMacros.h"
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static std::mt19937 rng = std::mt19937((std::random_device())());
|
static std::mt19937 rng = std::mt19937((std::random_device())());
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include <_TestingUtilities/HandyMacros.h>
|
#include <_TestingUtilities/HandyMacros.h>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static std::mt19937 rng = std::mt19937((std::random_device())());
|
static std::mt19937 rng = std::mt19937((std::random_device())());
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <random>
|
#include <random>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
using namespace Eule;
|
using namespace Leonetienne::Eule;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static std::mt19937 rng = std::mt19937((std::random_device())());
|
static std::mt19937 rng = std::mt19937((std::random_device())());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user