Skip to content

Commit

Permalink
Minor formating improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrogoyski committed Dec 31, 2022
1 parent cab7510 commit 75771ae
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/Statistics/SignificanceTest.php
Expand Up @@ -681,12 +681,19 @@ public function testChiSquaredTestExceptionCountsDiffer()
* @test Issue 458 regression test - Division-by-zero error in t-test
* https://github.com/markrogoyski/math-php/issues/458
*/
public function testIssue458(): void {
public function testIssue458(): void
{
// Given
$values = [];
for ($i=0; $i < 95; $i++) {$values[] = 1;}
for ($i=0; $i < 5; $i++) {$values[] = 0.5;}
for ($i=0; $i < 12; $i++) {$values[] = 0;}
for ($i = 0; $i < 95; $i++) {
$values[] = 1;
}
for ($i = 0; $i < 5; $i++) {
$values[] = 0.5;
}
for ($i = 0; $i < 12; $i++) {
$values[] = 0;
}

// When
$tTest = Significance::tTest($values, 0.569);
Expand Down

0 comments on commit 75771ae

Please sign in to comment.