Skip to content

Commit 0ccfbaf

Browse files
fix: Turtle Arc Test Updates ( Fixes #272 )
1 parent 7756603 commit 0ccfbaf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Turtle.tests.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,21 @@ describe Turtle {
2424
$t = turtle ArcRight $Radius 360
2525
$Heading = 180.0
2626
[Math]::Round($t.Width,1) | Should -Be ($Radius * 2)
27+
[Math]::Round($t.Height,1) | Should -Be ($Radius * 2)
2728
[Math]::Round($t.Heading,1) | Should -Be 360.0
2829

2930
$Radius = 1
3031
$Heading = 180.0
3132
$t = turtle ArcRight $Radius 180
32-
[Math]::Round($t.Width,1) | Should -Be ($Radius * 2)
33+
[Math]::Round($t.Width,1) | Should -Be $Radius
34+
[Math]::Round($t.Height,1) | Should -Be ($Radius * 2)
3335
[Math]::Round($t.Heading,1) | Should -Be $Heading
3436

3537
$Radius = 1
3638
$Heading = 90.0
3739
$t = turtle ArcRight $Radius $Heading
38-
[Math]::Round($t.Width,1) | Should -Be ($Radius * 4)
40+
[Math]::Round($t.Width,1) | Should -Be $Radius
41+
[Math]::Round($t.Height,1) | Should -Be $Radius
3942
[Math]::Round($t.Heading,1) | Should -Be $Heading
4043
}
4144

0 commit comments

Comments
 (0)