File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,18 +24,21 @@ describe Turtle {
24
24
$t = turtle ArcRight $Radius 360
25
25
$Heading = 180.0
26
26
[Math ]::Round($t.Width , 1 ) | Should - Be ($Radius * 2 )
27
+ [Math ]::Round($t.Height , 1 ) | Should - Be ($Radius * 2 )
27
28
[Math ]::Round($t.Heading , 1 ) | Should - Be 360.0
28
29
29
30
$Radius = 1
30
31
$Heading = 180.0
31
32
$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 )
33
35
[Math ]::Round($t.Heading , 1 ) | Should - Be $Heading
34
36
35
37
$Radius = 1
36
38
$Heading = 90.0
37
39
$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
39
42
[Math ]::Round($t.Heading , 1 ) | Should - Be $Heading
40
43
}
41
44
You can’t perform that action at this time.
0 commit comments