summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-07-24 11:18:28 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-07-24 11:18:28 +0800
commitcd4614f9973eb9f4ce858b3864573367614f54b6 (patch)
tree31c2b74a86612b4251bb0300e1c82f8a600a7aa7
parentd9bc53190d34b24133622e0f7cb87635927281dc (diff)
parent2fa585853beff6527ea71084640f91bad290fac2 (diff)
downloadgerbonara-cd4614f9973eb9f4ce858b3864573367614f54b6.tar.gz
gerbonara-cd4614f9973eb9f4ce858b3864573367614f54b6.tar.bz2
gerbonara-cd4614f9973eb9f4ce858b3864573367614f54b6.zip
Merge commit '2fa585853beff6527ea71084640f91bad290fac2' into merge-curtacircuitos
-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*'