diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-02-20 14:19:43 -0200 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-02-20 14:19:43 -0200 |
commit | dbe93f77e5d9630c035f204a932284372ecf124d (patch) | |
tree | 57ad26b1610f972dd60d82a6da98d949c965232b /gerber/tests | |
parent | 2ea9b8ad97df43f3aa483421596162e88fa7980e (diff) | |
download | gerbonara-dbe93f77e5d9630c035f204a932284372ecf124d.tar.gz gerbonara-dbe93f77e5d9630c035f204a932284372ecf124d.tar.bz2 gerbonara-dbe93f77e5d9630c035f204a932284372ecf124d.zip |
Fix floating point equality test
Diffstat (limited to 'gerber/tests')
-rw-r--r-- | gerber/tests/test_rs274x.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/tests/test_rs274x.py b/gerber/tests/test_rs274x.py index 3d560de..a3d20ed 100644 --- a/gerber/tests/test_rs274x.py +++ b/gerber/tests/test_rs274x.py @@ -23,8 +23,8 @@ def test_comments_parameter(): def test_size_parameter(): top_copper = read(TOP_COPPER_FILE) size = top_copper.size - assert_equal(size[0], 2.2569) - assert_equal(size[1], 1.5000) + assert_almost_equal(size[0], 2.256900, 6) + assert_almost_equal(size[1], 1.500000, 6) def test_conversion(): import copy |