Merge pull request #5557

dbecfe7d unit_tests: make the density test a bit less stringent (moneromooo-monero)
release-v0.7.1.0
Riccardo Spagni 5 years ago
commit df20bcdac5
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

@ -172,7 +172,7 @@ TEST(select_outputs, density)
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_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…
Cancel
Save