コード例 #1
0
 def test_set_angle(self):
     box = ConstructionBox()
     box.width = 3
     box.angle = 90
     assert box.angle == 90
     assert box.center.isclose((0, 0))
     assert box[0].isclose((+0.5, -1.5))
     assert box[2].isclose((-0.5, +1.5))
コード例 #2
0
 def test_set_angle(self):
     box = ConstructionBox()
     box.width = 3
     box.angle = 90
     assert box.angle == 90
     assert box.center == (0, 0)
     assert box[0] == (+0.5, -1.5)
     assert box[2] == (-0.5, +1.5)