forked from mpusz/mp-units
test: Uniform distribution tests fixed
This commit is contained in:
@@ -42,8 +42,8 @@ TEST_CASE("uniform_int_distribution")
|
|||||||
}
|
}
|
||||||
|
|
||||||
SECTION ("parametrized") {
|
SECTION ("parametrized") {
|
||||||
constexpr rep a = 5;
|
constexpr rep a = 2;
|
||||||
constexpr rep b = 2;
|
constexpr rep b = 5;
|
||||||
|
|
||||||
auto stl_dist = std::uniform_int_distribution(a, b);
|
auto stl_dist = std::uniform_int_distribution(a, b);
|
||||||
auto units_dist = units::uniform_int_distribution(q(a), q(b));
|
auto units_dist = units::uniform_int_distribution(q(a), q(b));
|
||||||
@@ -69,8 +69,8 @@ TEST_CASE("uniform_real_distribution")
|
|||||||
}
|
}
|
||||||
|
|
||||||
SECTION ("parametrized") {
|
SECTION ("parametrized") {
|
||||||
constexpr rep a = 5.0;
|
constexpr rep a = 2.0;
|
||||||
constexpr rep b = 2.0;
|
constexpr rep b = 5.0;
|
||||||
|
|
||||||
auto stl_dist = std::uniform_real_distribution(a, b);
|
auto stl_dist = std::uniform_real_distribution(a, b);
|
||||||
auto units_dist = units::uniform_real_distribution(q(a), q(b));
|
auto units_dist = units::uniform_real_distribution(q(a), q(b));
|
||||||
|
Reference in New Issue
Block a user