Commit 2ff623dc authored by Miguel Angel Ajo's avatar Miguel Angel Ajo

Fix the pcb bouncing box test adding the track clearance.

parent bd04e61b
...@@ -51,8 +51,9 @@ class TestBoardClass(unittest.TestCase): ...@@ -51,8 +51,9 @@ class TestBoardClass(unittest.TestCase):
bounding_box = pcb.ComputeBoundingBox() bounding_box = pcb.ComputeBoundingBox()
height, width = ToMM(bounding_box.GetSize()) height, width = ToMM(bounding_box.GetSize())
self.assertAlmostEqual(width, (30-10) + 0.5, 2) clearance = ToMM(track.GetClearance()*2)
self.assertAlmostEqual(height, (20-10) + 0.5, 2) self.assertAlmostEqual(width, (30-10) + 0.5 + clearance, 2)
self.assertAlmostEqual(height, (20-10) + 0.5 + clearance, 2)
def test_pcb_get_pad(self): def test_pcb_get_pad(self):
pcb = BOARD() pcb = BOARD()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment