diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-06-01 20:58:16 -0400 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-06-01 20:58:16 -0400 |
commit | faa44ab73135ee111b9856dcdd155540cb67cfc3 (patch) | |
tree | 60c2756abaeb234db6171fff9d44aaf868891d71 /gerber/tests | |
parent | 9e36d7e21d2906e22c91350ea0fee0d989d58584 (diff) | |
download | gerbonara-faa44ab73135ee111b9856dcdd155540cb67cfc3.tar.gz gerbonara-faa44ab73135ee111b9856dcdd155540cb67cfc3.tar.bz2 gerbonara-faa44ab73135ee111b9856dcdd155540cb67cfc3.zip |
Fix IPC-D-356 parser. Handle too-long reference designators exported by eagle per #28.
Diffstat (limited to 'gerber/tests')
-rw-r--r-- | gerber/tests/test_ipc356.py | 10 |
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) |