summaryrefslogtreecommitdiff
path: root/gerber/tests/test_excellon_statements.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2015-01-25 14:19:48 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2015-01-25 14:19:48 -0500
commitb495d51354eff7b858dbbd41740865eba7f39100 (patch)
tree4e418b6d508b4390354231d5f5c7360142b2b783 /gerber/tests/test_excellon_statements.py
parentd5157c1d076360e3702a910f119b9fc44ff76df5 (diff)
downloadgerbonara-b495d51354eff7b858dbbd41740865eba7f39100.tar.gz
gerbonara-b495d51354eff7b858dbbd41740865eba7f39100.tar.bz2
gerbonara-b495d51354eff7b858dbbd41740865eba7f39100.zip
Changed zeros/zero suppression conventions to match file format specs
Diffstat (limited to 'gerber/tests/test_excellon_statements.py')
-rw-r--r--gerber/tests/test_excellon_statements.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/gerber/tests/test_excellon_statements.py b/gerber/tests/test_excellon_statements.py
index 4c3201b..2e508ff 100644
--- a/gerber/tests/test_excellon_statements.py
+++ b/gerber/tests/test_excellon_statements.py
@@ -141,12 +141,22 @@ def test_unitstmt_factory():
line = 'INCH,LZ'
stmt = UnitStmt.from_excellon(line)
assert_equal(stmt.units, 'inch')
- assert_equal(stmt.zero_suppression, 'trailing')
+ assert_equal(stmt.zeros, 'leading')
+
+ line = 'INCH,TZ'
+ stmt = UnitStmt.from_excellon(line)
+ assert_equal(stmt.units, 'inch')
+ assert_equal(stmt.zeros, 'trailing')
+
+ line = 'METRIC,LZ'
+ stmt = UnitStmt.from_excellon(line)
+ assert_equal(stmt.units, 'metric')
+ assert_equal(stmt.zeros, 'leading')
line = 'METRIC,TZ'
stmt = UnitStmt.from_excellon(line)
assert_equal(stmt.units, 'metric')
- assert_equal(stmt.zero_suppression, 'leading')
+ assert_equal(stmt.zeros, 'trailing')
def test_unitstmt_dump():