Fix the pcb bouncing box test adding the track clearance.

This commit is contained in:
Miguel Angel Ajo 2015-02-01 19:31:47 +01:00
parent bd04e61b6f
commit 2ff623dcb9
1 changed files with 3 additions and 2 deletions

View File

@ -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()