Skip to content

Commit 229755a

Browse files
feat: Typecasting to float in tests
The joy of double procession comparison
1 parent 46d0a0f commit 229755a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Turtle.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe Turtle {
6060
[Math]::Round($turtle.Position.Y,10) | Should -be 1
6161
$turtle = $turtle.Rotate($turtle.Towards(2,2))
6262
$turtle = $turtle.Forward($turtle.Distance(2,2))
63-
$turtle.Heading | Should -be 45
63+
$turtle.Heading -as [float] | Should -be 45
6464
[Math]::Round($turtle.Position.Y,10) | Should -be 2
6565
[Math]::Round($turtle.Position.Y,10) | Should -be 2
6666
}

0 commit comments

Comments
 (0)