summaryrefslogtreecommitdiff
path: root/gerber/tests/test_utils.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2015-02-08 22:27:24 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2015-02-08 22:27:24 -0500
commitaea1f38597824085739aeed1fa6f33e264e23a4b (patch)
treee5b33f4f41fe0c045ae346cacc45ec49a50b03e2 /gerber/tests/test_utils.py
parenta4c8a4cbcf8d60307b73d9a450c752ea376eeeb0 (diff)
downloadgerbonara-aea1f38597824085739aeed1fa6f33e264e23a4b.tar.gz
gerbonara-aea1f38597824085739aeed1fa6f33e264e23a4b.tar.bz2
gerbonara-aea1f38597824085739aeed1fa6f33e264e23a4b.zip
Fix write_gerber_value bug
Diffstat (limited to 'gerber/tests/test_utils.py')
-rw-r--r--gerber/tests/test_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gerber/tests/test_utils.py b/gerber/tests/test_utils.py
index 1c3f1e5..fe9b2e6 100644
--- a/gerber/tests/test_utils.py
+++ b/gerber/tests/test_utils.py
@@ -37,6 +37,9 @@ def test_zero_suppression():
assert_equal(value, parse_gerber_value(string, fmt, zero_suppression))
assert_equal(string, write_gerber_value(value, fmt, zero_suppression))
+ assert_equal(write_gerber_value(0.000000001, fmt, 'leading'), '0')
+ assert_equal(write_gerber_value(0.000000001, fmt, 'trailing'), '0')
+
def test_format():
""" Test gerber value parser and writer handle format correctly