Fix one more test case for arc approx
This commit is contained in:
parent
63f4f42e6a
commit
da480aba47
|
@ -21,7 +21,7 @@ class TestTracks(unittest.TestCase):
|
||||||
arc = sorted(arcs, key=lambda t: [t.GetStart()[0], t.GetStart()[1]])[0]
|
arc = sorted(arcs, key=lambda t: [t.GetStart()[0], t.GetStart()[1]])[0]
|
||||||
self.assertEqual( [29414200, 26500000], [arc.GetCenter()[0], arc.GetCenter()[1]] )
|
self.assertEqual( [29414200, 26500000], [arc.GetCenter()[0], arc.GetCenter()[1]] )
|
||||||
self.assertEqual([1800, 2250], [round(arc.GetArcAngleStart()), round(arc.GetArcAngleEnd())])
|
self.assertEqual([1800, 2250], [round(arc.GetArcAngleStart()), round(arc.GetArcAngleEnd())])
|
||||||
self.assertEqual(2414211, round(arc.GetRadius()))
|
self.assertEqual( 2414200, round( arc.GetRadius() ) )
|
||||||
|
|
||||||
def test_vias(self):
|
def test_vias(self):
|
||||||
vias = [t.Cast() for t in self.pcb.Tracks() if t.GetClass() == 'PCB_VIA']
|
vias = [t.Cast() for t in self.pcb.Tracks() if t.GetClass() == 'PCB_VIA']
|
||||||
|
|
Loading…
Reference in New Issue