Fixed tolerance of expected variance

This commit is contained in:
tsommer committed 2020-09-30 20:16:56 +02:00
1 parent a9e89070b8
commit 0a61f0da37
1 file changed
+1 -1
+1 -1
View File
@@ -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]