summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_inkex_bezier.py
blob: b27123333a7614d9f875c8e17ca8679e98db2274 (plain)
1
2
3
4
5
6
7
8
9
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)