summaryrefslogtreecommitdiff
path: root/gerber/tests
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2015-06-02 00:29:36 -0300
committerPaulo Henrique Silva <ph.silva@gmail.com>2015-06-02 00:29:36 -0300
commit1a70064e1097b90215e9f58b36cb31520d650eee (patch)
tree60c2756abaeb234db6171fff9d44aaf868891d71 /gerber/tests
parent9e36d7e21d2906e22c91350ea0fee0d989d58584 (diff)
parentfaa44ab73135ee111b9856dcdd155540cb67cfc3 (diff)
downloadgerbonara-1a70064e1097b90215e9f58b36cb31520d650eee.tar.gz
gerbonara-1a70064e1097b90215e9f58b36cb31520d650eee.tar.bz2
gerbonara-1a70064e1097b90215e9f58b36cb31520d650eee.zip
Merge pull request #29 from curtacircuitos/eagle_netlist_fix
Fix IPC-D-356 parser. Handle too-long reference designators exported …
Diffstat (limited to 'gerber/tests')
-rw-r--r--gerber/tests/test_ipc356.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gerber/tests/test_ipc356.py b/gerber/tests/test_ipc356.py
index 5ccc7b8..f123a38 100644
--- a/gerber/tests/test_ipc356.py
+++ b/gerber/tests/test_ipc356.py
@@ -118,3 +118,13 @@ def test_test_record():
assert_almost_equal(r.rect_x, 0.)
assert_equal(r.soldermask_info, 'primary side')
+ record_string = '317SCL COMMUNICATION-1 D 40PA00X 34000Y 20000X 600Y1200R270 '
+ r = IPC356_TestRecord.from_line(record_string, FileSettings(units='inch'))
+ assert_equal(r.feature_type, 'through-hole')
+ assert_equal(r.net_name, 'SCL')
+ assert_equal(r.id, 'COMMUNICATION')
+ assert_equal(r.pin, '1')
+ assert_almost_equal(r.hole_diameter, 0.004)
+ assert_true(r.plated)
+ assert_almost_equal(r.x_coord, 3.4)
+ assert_almost_equal(r.y_coord, 2.0)