Skip to content

Commit

Permalink
Increase sample size for normal distribution tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
maxisoft committed Oct 29, 2023
1 parent fde7332 commit 4e97524
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ASFFreeGames.Tests/RandomUtilsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ public class RandomUtilsTests {
public static TheoryData<double, double, int, double> GetTestData() =>
new TheoryData<double, double, int, double> {
// 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
Expand Down

0 comments on commit 4e97524

Please sign in to comment.