summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_inkex_bezier.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/extensions/tests/test_inkex_bezier.py')
-rw-r--r--share/extensions/tests/test_inkex_bezier.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/extensions/tests/test_inkex_bezier.py b/share/extensions/tests/test_inkex_bezier.py
new file mode 100644
index 0000000..b271233
--- /dev/null
+++ b/share/extensions/tests/test_inkex_bezier.py
@@ -0,0 +1,10 @@
+# coding=utf-8
+from inkex.bezier import pointdistance
+
+
+class TestPointDistance(object):
+ def test_points_on_horizontal_line(self):
+ p1 = (0, 0)
+ p2 = (10, 0)
+
+ assert 10 == pointdistance(p1, p2)