mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 13:47:47 +00:00
unit_tests: make the density test a bit less stringent
It's an inherently random test
This commit is contained in:
parent
5fbfa8a656
commit
dbecfe7d5d
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ TEST(select_outputs, density)
|
||||||
float chain_ratio = count_chain / (float)n_outs;
|
float chain_ratio = count_chain / (float)n_outs;
|
||||||
MDEBUG(count_selected << "/" << NPICKS << " outputs selected in blocks of density " << d << ", " << 100.0f * selected_ratio << "%");
|
MDEBUG(count_selected << "/" << NPICKS << " outputs selected in blocks of density " << d << ", " << 100.0f * selected_ratio << "%");
|
||||||
MDEBUG(count_chain << "/" << offsets.size() << " outputs in blocks of density " << d << ", " << 100.0f * chain_ratio << "%");
|
MDEBUG(count_chain << "/" << offsets.size() << " outputs in blocks of density " << d << ", " << 100.0f * chain_ratio << "%");
|
||||||
ASSERT_LT(fabsf(selected_ratio - chain_ratio), 0.02f);
|
ASSERT_LT(fabsf(selected_ratio - chain_ratio), 0.025f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue