From 4e9752464c41e50f1f888586d793da889783ac1f Mon Sep 17 00:00:00 2001 From: maxisoft Date: Sun, 29 Oct 2023 11:31:27 +0100 Subject: [PATCH] Increase sample size for normal distribution tests This commit increases the sample size for the normal distribution tests in RandomUtilsTests.cs. The increased sample size reduces the margin of error and makes the tests more reliable and consistent. --- ASFFreeGames.Tests/RandomUtilsTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ASFFreeGames.Tests/RandomUtilsTests.cs b/ASFFreeGames.Tests/RandomUtilsTests.cs index 753d9b8..7222f09 100644 --- a/ASFFreeGames.Tests/RandomUtilsTests.cs +++ b/ASFFreeGames.Tests/RandomUtilsTests.cs @@ -11,10 +11,10 @@ public class RandomUtilsTests { public static TheoryData GetTestData() => new TheoryData { // mean, std, sample size, margin of error - { 0, 1, 1000, 0.05 }, // original test case - { 10, 2, 1000, 0.1 }, // original test case - { -5, 3, 5000, 0.15 }, // additional test case - { 20, 5, 10000, 0.2 } // additional test case + { 0, 1, 10000, 0.05 }, + { 10, 2, 10000, 0.1 }, + { -5, 3, 50000, 0.15 }, + { 20, 5, 100000, 0.2 } }; // A test method to check if the mean and standard deviation of the normal distribution are close to the expected values