From d4f2547c7891b581f7de52025c4be35bde262533 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 30 Sep 2020 20:25:08 +0200 Subject: [PATCH] Fixed tolerance --- FastRngTests/Double/Distributions/Uniform.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FastRngTests/Double/Distributions/Uniform.cs b/FastRngTests/Double/Distributions/Uniform.cs index ed7f51e..ff52db8 100644 --- a/FastRngTests/Double/Distributions/Uniform.cs +++ b/FastRngTests/Double/Distributions/Uniform.cs @@ -32,8 +32,8 @@ namespace FastRngTests.Double.Distributions TestContext.WriteLine($"mean={MEAN} vs. {stats.Mean}"); TestContext.WriteLine($"variance={VARIANCE} vs {stats.Variance}"); - Assert.That(stats.Mean, Is.EqualTo(MEAN).Within(0.4), "Mean is out of range"); - Assert.That(stats.Variance, Is.EqualTo(VARIANCE).Within(0.4), "Variance is out of range"); + Assert.That(stats.Mean, Is.EqualTo(MEAN).Within(0.01), "Mean is out of range"); + Assert.That(stats.Variance, Is.EqualTo(VARIANCE).Within(0.001), "Variance is out of range"); } [Test]