summaryrefslogtreecommitdiff
path: root/gerber/tests/test_am_statements.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2016-01-21 03:57:44 -0500
committerGarret Fick <garret@ficksworkshop.com>2016-09-24 02:28:36 +0800
commit5af19af190c1fb0f0c5be029d46d63e657dde4d9 (patch)
treedd60a0b21e1d1ca7258b9f978ce973354d96062c /gerber/tests/test_am_statements.py
parent8d5e782ccf220d77f0aad5a4e5605dc5cbe0f410 (diff)
downloadgerbonara-5af19af190c1fb0f0c5be029d46d63e657dde4d9.tar.gz
gerbonara-5af19af190c1fb0f0c5be029d46d63e657dde4d9.tar.bz2
gerbonara-5af19af190c1fb0f0c5be029d46d63e657dde4d9.zip
Commit partial merge so I can work on the plane
Diffstat (limited to 'gerber/tests/test_am_statements.py')
-rw-r--r--gerber/tests/test_am_statements.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gerber/tests/test_am_statements.py b/gerber/tests/test_am_statements.py
index c5ae6ae..98a7332 100644
--- a/gerber/tests/test_am_statements.py
+++ b/gerber/tests/test_am_statements.py
@@ -165,6 +165,7 @@ def test_AMOUtlinePrimitive_dump():
assert_equal(o.to_gerber().replace('\n', ''), '4,1,3,0,0,3,3,3,0,0,0,0*')
+
def test_AMOutlinePrimitive_conversion():
o = AMOutlinePrimitive(
4, 'on', (0, 0), [(25.4, 25.4), (25.4, 0), (0, 0)], 0)
@@ -259,6 +260,7 @@ def test_AMThermalPrimitive_validation():
assert_raises(TypeError, AMThermalPrimitive, 7, (0.0, '0'), 7, 5, 0.2, 0.0)
+
def test_AMThermalPrimitive_factory():
t = AMThermalPrimitive.from_gerber('7,0,0,7,6,0.2,45*')
assert_equal(t.code, 7)
@@ -269,11 +271,13 @@ def test_AMThermalPrimitive_factory():
assert_equal(t.rotation, 45)
+
def test_AMThermalPrimitive_dump():
t = AMThermalPrimitive.from_gerber('7,0,0,7,6,0.2,30*')
assert_equal(t.to_gerber(), '7,0,0,7.0,6.0,0.2,30.0*')
+
def test_AMThermalPrimitive_conversion():
t = AMThermalPrimitive(7, (25.4, 25.4), 25.4, 25.4, 25.4, 0.0)
t.to_inch()