def test_is_on(): """Test is_on function used in LRB paper.""" point = Point(1.0) start_point = Point(0.0) end_point = Point(3.0) assert point.is_on(start_point, end_point) assert point.is_on(end_point, start_point) point = Point(1.0, 1.0) start_point = Point(0.0, 0.0) end_point = Point(3.0, 3.0) assert point.is_on(start_point, end_point) assert point.is_on(end_point, start_point) point = Point(1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0) start_point = Point(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) end_point = Point(3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0) assert point.is_on(start_point, end_point) assert point.is_on(end_point, start_point) point = Point(1.000000000000001) start_point = Point(0.000000000000001) end_point = Point(3.000000000000001) assert point.is_on(start_point, end_point) assert point.is_on(end_point, start_point)