mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 11:23:26 +01:00
Merge pull request #5652
f81cb4f
unit_tests: add more leeway to the 'same distribution' check (moneromooo-monero)
This commit is contained in:
commit
86ee631212
@ -211,10 +211,10 @@ TEST(select_outputs, same_distribution)
|
|||||||
{
|
{
|
||||||
const double diff = (double)output_norm[i] - (double)chain_norm[i];
|
const double diff = (double)output_norm[i] - (double)chain_norm[i];
|
||||||
double dev = fabs(2.0 * diff / (output_norm[i] + chain_norm[i]));
|
double dev = fabs(2.0 * diff / (output_norm[i] + chain_norm[i]));
|
||||||
ASSERT_LT(dev, 0.1);
|
ASSERT_LT(dev, 0.15);
|
||||||
avg_dev += dev;
|
avg_dev += dev;
|
||||||
}
|
}
|
||||||
avg_dev /= 100;
|
avg_dev /= 100;
|
||||||
MDEBUG("avg_dev: " << avg_dev);
|
MDEBUG("avg_dev: " << avg_dev);
|
||||||
ASSERT_LT(avg_dev, 0.015);
|
ASSERT_LT(avg_dev, 0.02);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user