Add test case to start working on a fix
This commit is contained in:
parent
2e2b4e49c3
commit
2fa585853b
1 changed files with 4 additions and 1 deletions
|
|
@ -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*'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue