diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2014-11-10 12:24:09 -0200 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2014-11-10 12:24:09 -0200 |
commit | ab69ee0172353e64fbe5099a974341e88feaf24b (patch) | |
tree | 13dacd4fc7fceb664d86dae1457d4511ff928181 /gerber/tests/test_gerber_statements.py | |
parent | f5abd5b0bdc0b9f524456dc9216bd0f3732e82a0 (diff) | |
download | gerbonara-ab69ee0172353e64fbe5099a974341e88feaf24b.tar.gz gerbonara-ab69ee0172353e64fbe5099a974341e88feaf24b.tar.bz2 gerbonara-ab69ee0172353e64fbe5099a974341e88feaf24b.zip |
Bunch of small fixes to improve Gerber read/write.
Diffstat (limited to 'gerber/tests/test_gerber_statements.py')
-rw-r--r-- | gerber/tests/test_gerber_statements.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gerber/tests/test_gerber_statements.py b/gerber/tests/test_gerber_statements.py index a463c9d..62b99b4 100644 --- a/gerber/tests/test_gerber_statements.py +++ b/gerber/tests/test_gerber_statements.py @@ -123,7 +123,7 @@ def test_IPParamStmt_dump(): def test_OFParamStmt_factory(): - """ Test OFParamStmt factory + """ Test OFParamStmt factory """ stmt = {'param': 'OF', 'a': '0.1234567', 'b': '0.1234567'} of = OFParamStmt.from_dict(stmt) @@ -139,13 +139,13 @@ def test_OFParamStmt(): assert_equal(stmt.param, param) assert_equal(stmt.a, val) assert_equal(stmt.b, val) - + def test_OFParamStmt_dump(): """ Test OFParamStmt to_gerber() """ - stmt = {'param': 'OF', 'a': '0.1234567', 'b': '0.1234567'} + stmt = {'param': 'OF', 'a': '0.123456', 'b': '0.123456'} of = OFParamStmt.from_dict(stmt) - assert_equal(of.to_gerber(), '%OFA0.123456B0.123456*%') + assert_equal(of.to_gerber(), '%OFA0.12345B0.12345*%') def test_LPParamStmt_factory(): |