From 0a61f0da37a759a33e722918faa1ed054b0f0734 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 30 Sep 2020 20:16:56 +0200 Subject: [PATCH] Fixed tolerance of expected variance --- FastRngTests/Double/Distributions/Normal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastRngTests/Double/Distributions/Normal.cs b/FastRngTests/Double/Distributions/Normal.cs index 1a8ce9f..6c7fff1 100644 --- a/FastRngTests/Double/Distributions/Normal.cs +++ b/FastRngTests/Double/Distributions/Normal.cs @@ -33,7 +33,7 @@ namespace FastRngTests.Double.Distributions 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.4), "Variance is out of range"); + Assert.That(stats.Variance, Is.EqualTo(STANDARD_DEVIATION*STANDARD_DEVIATION).Within(0.1), "Variance is out of range"); } [Test]