Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
2ff623dc
Commit
2ff623dc
authored
Feb 01, 2015
by
Miguel Angel Ajo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the pcb bouncing box test adding the track clearance.
parent
bd04e61b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test_002_board_class.py
qa/testcases/test_002_board_class.py
+3
-2
No files found.
qa/testcases/test_002_board_class.py
View file @
2ff623dc
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment