From 94844a18e752b7e4c9695eac076efa275996450f Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 30 Sep 2020 20:24:11 +0200 Subject: [PATCH] Fixed tolerance --- FastRngTests/Double/Distributions/Normal.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FastRngTests/Double/Distributions/Normal.cs b/FastRngTests/Double/Distributions/Normal.cs index 6c7fff1..d00e2ce 100644 --- a/FastRngTests/Double/Distributions/Normal.cs +++ b/FastRngTests/Double/Distributions/Normal.cs @@ -32,8 +32,8 @@ namespace FastRngTests.Double.Distributions TestContext.WriteLine($"mean={MEAN} vs. {stats.Mean}"); TestContext.WriteLine($"variance={STANDARD_DEVIATION * STANDARD_DEVIATION} vs {stats.Variance}"); - Assert.That(stats.Mean, Is.EqualTo(MEAN).Within(0.4), "Mean is out of range"); - Assert.That(stats.Variance, Is.EqualTo(STANDARD_DEVIATION*STANDARD_DEVIATION).Within(0.1), "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(STANDARD_DEVIATION*STANDARD_DEVIATION).Within(0.01), "Variance is out of range"); } [Test]