diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-06 23:52:57 -0400 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-06 23:52:57 -0400 |
commit | 2abb7159be80beb0565d35e856f3279d2f1f693b (patch) | |
tree | 92116e6eea02e40cc68215c13e837b610cc97644 /gerber/tests | |
parent | 22a6f87e94c1192b277a1353aefc7c0316f41f90 (diff) | |
download | gerbonara-2abb7159be80beb0565d35e856f3279d2f1f693b.tar.gz gerbonara-2abb7159be80beb0565d35e856f3279d2f1f693b.tar.bz2 gerbonara-2abb7159be80beb0565d35e856f3279d2f1f693b.zip |
add tests
Diffstat (limited to 'gerber/tests')
-rw-r--r-- | gerber/tests/test_gerber_statements.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gerber/tests/test_gerber_statements.py b/gerber/tests/test_gerber_statements.py index 121aa42..7495ba7 100644 --- a/gerber/tests/test_gerber_statements.py +++ b/gerber/tests/test_gerber_statements.py @@ -87,6 +87,15 @@ def test_IPParamStmt_dump(): assert_equal(ip.to_gerber(), '%IPNEG*%') +def test_OFParamStmt_factory(): + """ Test OFParamStmt factory correctly handles parameters + """ + stmt = {'param': 'OF', 'a': '0.1234567', 'b':'0.1234567'} + of = OFParamStmt.from_dict(stmt) + assert_equal(of.a, 0.1234567) + assert_equal(of.b, 0.1234567) + + def test_OFParamStmt_dump(): """ Test OFParamStmt to_gerber() """ |