Skip to content

Commit

Permalink
Allow some error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Sep 19, 2023
1 parent 1a8dc98 commit f3895a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions tests/MatrixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2042,7 +2042,7 @@ public function sin() : void
[0.4121184852417566],
]);

$this->assertEquals($expected, $b);
$this->assertEqualsWithDelta($expected, $b, 1e-8);
}

/**
Expand All @@ -2064,7 +2064,7 @@ public function asin() : void
[0.010000166674167114],
]);

$this->assertEquals($expected, $b);
$this->assertEqualsWithDelta($expected, $b, 1e-8);
}

/**
Expand All @@ -2086,7 +2086,7 @@ public function cos() : void
[-0.9111302618846769],
]);

$this->assertEquals($expected, $b);
$this->assertEqualsWithDelta($expected, $b, 1e-8);
}

/**
Expand Down Expand Up @@ -2130,7 +2130,7 @@ public function tan() : void
[-0.45231565944180985],
]);

$this->assertEquals($expected, $b);
$this->assertEqualsWithDelta($expected, $b, 1e-8);
}

/**
Expand Down
10 changes: 5 additions & 5 deletions tests/VectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ public function sin() : void
0.9129452507276277, 0.5155013718214642, -0.6181371122370333,
]);

$this->assertEquals($expected, $b);
$this->assertEqualsWithDelta($expected, $b, 1e-8);
}

/**
Expand All @@ -1085,7 +1085,7 @@ public function asin() : void
0.1001674211615598, 0.3046926540153975, -0.5235987755982989,
]);

$this->assertEquals($expected, $b);
$this->assertEqualsWithDelta($expected, $b, 1e-8);
}

/**
Expand All @@ -1102,7 +1102,7 @@ public function cos() : void
0.40808206181339196, -0.8568887533689473, 0.7860702961410393,
]);

$this->assertEquals($expected, $b);
$this->assertEqualsWithDelta($expected, $b, 1e-8);
}

/**
Expand All @@ -1118,7 +1118,7 @@ public function acos() : void
1.4706289056333368, 1.2661036727794992, 2.0943951023931957,
]);

$this->assertEquals($expected, $b);
$this->assertEqualsWithDelta($expected, $b, 1e-8);
}

/**
Expand Down Expand Up @@ -1152,7 +1152,7 @@ public function atan() : void
1.5208379310729538, 1.2036224929766774, 1.486959684726482,
]);

$this->assertEquals($expected, $b);
$this->assertEqualsWithDelta($expected, $b, 1e-8);
}

/**
Expand Down

0 comments on commit f3895a4

Please sign in to comment.