xo-unit: test: expand scope of rng quantity test + turn off debug

This commit is contained in:
Roland Conybeare 2024-04-27 10:01:02 -04:00
commit 7347a4f3a9

View file

@ -213,8 +213,9 @@ namespace xo {
REQUIRE(nu1_j.n_bpu() == 1);
/* pick power in {+1, -1} */
int power = ((rng() % 2 == 0) ? +1 : -1);
int power = 1 + (rng() % 2); /* power in {1, 2} */
if (rng() % 2)
power = -power; /* power in +/- {1,2} */
if (power == -1)
nu1_j = nu1_j.reciprocal();
@ -341,7 +342,7 @@ namespace xo {
* 2. verify +,- by combining quantities with different units
*/
TEST_CASE("Quantity.full", "[Quantity.full]") {
constexpr bool c_debug_flag = true;
constexpr bool c_debug_flag = false;
//auto rng = xo::rng::xoshiro256ss(seed);