diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-01-26 00:20:01 -0200 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-01-26 00:20:01 -0200 |
commit | 2586692a1700dcdcae65ed8342e36bb0dd01c166 (patch) | |
tree | 4528822d7187b2215a91e18361950ce608ccf569 /gerber/tests/test_cam.py | |
parent | d5157c1d076360e3702a910f119b9fc44ff76df5 (diff) | |
parent | 939f782728a1b16f85ad2697b03ef026a88ad354 (diff) | |
download | gerbonara-2586692a1700dcdcae65ed8342e36bb0dd01c166.tar.gz gerbonara-2586692a1700dcdcae65ed8342e36bb0dd01c166.tar.bz2 gerbonara-2586692a1700dcdcae65ed8342e36bb0dd01c166.zip |
Merge pull request #7 from curtacircuitos/zeros_convention
Zeros convention
Diffstat (limited to 'gerber/tests/test_cam.py')
-rw-r--r-- | gerber/tests/test_cam.py | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/gerber/tests/test_cam.py b/gerber/tests/test_cam.py index ce4ec44..1aeb18c 100644 --- a/gerber/tests/test_cam.py +++ b/gerber/tests/test_cam.py @@ -64,5 +64,28 @@ def test_camfile_settings(): """ cf = CamFile() assert_equal(cf.settings, FileSettings()) - -
\ No newline at end of file + +def test_zeros(): + + fs = FileSettings() + assert_equal(fs.zero_suppression, 'trailing') + assert_equal(fs.zeros, 'leading') + + + fs['zero_suppression'] = 'leading' + assert_equal(fs.zero_suppression, 'leading') + assert_equal(fs.zeros, 'trailing') + + fs.zero_suppression = 'trailing' + assert_equal(fs.zero_suppression, 'trailing') + assert_equal(fs.zeros, 'leading') + + fs['zeros'] = 'trailing' + assert_equal(fs.zeros, 'trailing') + assert_equal(fs.zero_suppression, 'leading') + + + fs.zeros= 'leading' + assert_equal(fs.zeros, 'leading') + assert_equal(fs.zero_suppression, 'trailing') + |