summaryrefslogtreecommitdiff
path: root/gerber/tests
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2014-09-30 23:53:57 -0400
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2014-09-30 23:53:57 -0400
commitea0dc8d0c8d0002008a462fbb70e8846f6691253 (patch)
tree4f0fed81868a41b10e90f16e8883a6ef570da43a /gerber/tests
parentf8449ad2b60b8a715d0867325e257a8297193b49 (diff)
downloadgerbonara-ea0dc8d0c8d0002008a462fbb70e8846f6691253.tar.gz
gerbonara-ea0dc8d0c8d0002008a462fbb70e8846f6691253.tar.bz2
gerbonara-ea0dc8d0c8d0002008a462fbb70e8846f6691253.zip
tests
Diffstat (limited to 'gerber/tests')
-rw-r--r--gerber/tests/test_statements.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gerber/tests/test_statements.py b/gerber/tests/test_statements.py
index 47fbb48..4560521 100644
--- a/gerber/tests/test_statements.py
+++ b/gerber/tests/test_statements.py
@@ -85,3 +85,13 @@ def test_IPParamStmt_dump():
stmt = {'param': 'IP', 'ip': 'NEG'}
ip = IPParamStmt.from_dict(stmt)
assert_equal(ip.to_gerber(), '%IPNEG*%')
+
+
+def test_OFParamStmt_dump():
+ """ Test OFParamStmt to_gerber()
+ """
+ stmt = {'param': 'OF', 'a': '0.1234567', 'b': '0.1234567'}
+ of = OFParamStmt.from_dict(stmt)
+ assert_equal(of.to_gerber(), '%OFA0.123456B0.123456*%')
+
+