summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2015-12-06 21:44:09 -0200
committerPaulo Henrique Silva <ph.silva@gmail.com>2015-12-06 21:44:09 -0200
commit2fa585853beff6527ea71084640f91bad290fac2 (patch)
tree7a426227ab7e6e27a13e1cc19cf9eb9f63adb1c1 /gerber
parent2e2b4e49c3182cc7385f12d760222ecb57cc1356 (diff)
downloadgerbonara-2fa585853beff6527ea71084640f91bad290fac2.tar.gz
gerbonara-2fa585853beff6527ea71084640f91bad290fac2.tar.bz2
gerbonara-2fa585853beff6527ea71084640f91bad290fac2.zip
Add test case to start working on a fix
Diffstat (limited to 'gerber')
-rw-r--r--gerber/tests/test_gerber_statements.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gerber/tests/test_gerber_statements.py b/gerber/tests/test_gerber_statements.py
index 79ce76b..a89a283 100644
--- a/gerber/tests/test_gerber_statements.py
+++ b/gerber/tests/test_gerber_statements.py
@@ -449,9 +449,12 @@ def test_AMParamStmt_dump():
macro = '5,1,8,25.4,25.4,25.4,0.0'
s = AMParamStmt.from_dict({'param': 'AM', 'name': name, 'macro': macro })
s.build()
-
assert_equal(s.to_gerber(), '%AMPOLYGON*5,1,8,25.4,25.4,25.4,0.0*%')
+ s = AMParamStmt.from_dict({'param': 'AM', 'name': 'OC8', 'macro': '5,1,8,0,0,1.08239X$1,22.5'})
+ s.build()
+ assert_equal(s.to_gerber(), '%AMOC8*5,1,8,0,0,1.08239X$1,22.5*%')
+
def test_AMParamStmt_string():
name = 'POLYGON'
macro = '5,1,8,25.4,25.4,25.4,0*'