21 double expected = 0.5;
23 for (
auto i = 0; i < 3; ++i)
24 CHECK(our_rng() == Approx(expected));
30 double expected = 0.25;
32 for (
auto i = 0; i < 3; ++i)
33 CHECK(our_rng() == Approx(expected));
43 std::stringstream stream;
50 for (
auto i = 0; i < 3; ++i)
51 CHECK(rng2() == rng());
61 CHECK(rng() == Approx(expected));
64 CHECK(rng() == Approx(expected));
67 CHECK(rng() == Approx(expected));
69 std::vector<DoubleRNG::uint_type> state;
72 CHECK(rng() == Approx(expected));
75 CHECK(rng() == Approx(expected));
83 std::stringstream stream1;
86 auto rng2 = rng.makeClone();
88 std::stringstream stream2;
91 CHECK(stream1.str() == stream2.str());
93 for (
auto i = 0; i < 3; ++i)
94 CHECK((*rng2)() == rng());
helper functions for EinsplineSetBuilder
TEST_CASE("complex_helper", "[type_traits]")
void write(std::ostream &rout) const override
void set_value(double val)
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))