Skip to content

Commit 6153b23

Browse files
author
James Brundage
committed
fix: Turtle Test floating point tolerance
1 parent 275a654 commit 6153b23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Turtle.tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ describe Turtle {
22
it "Draws things with simple commands" {
33
$null = $turtle.Clear().Square()
44
$turtleSquaredPoints = $turtle.Points
5-
$turtleSquaredPoints.Length | Should -Be 8
6-
$turtleSquaredPoints |
5+
$turtleSquaredPoints.Length | Should -Be 8
6+
[int]($turtleSquaredPoints |
77
Measure-Object -Sum |
8-
Select-Object -ExpandProperty Sum |
8+
Select-Object -ExpandProperty Sum) |
99
Should -Be 0
1010
}
1111

0 commit comments

Comments
 (0)