Skip to content

Commit e2001dd

Browse files
committed
added the doc string to the method in C
1 parent 22ccf84 commit e2001dd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src_c/line.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static struct PyMethodDef pg_line_methods[] = {
344344
{"scale_ip", (PyCFunction)pg_line_scale_ip, METH_FASTCALL,
345345
DOC_LINE_SCALEIP},
346346
{"project", (PyCFunction)pg_line_project, METH_VARARGS | METH_KEYWORDS,
347-
""},
347+
DOC_LINE_PROJECT},
348348
{NULL, NULL, 0, NULL}};
349349

350350
static PyObject *

test/geometry_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,13 +2213,12 @@ def test_meth_project(self):
22132213

22142214
projected_point = line.project(test_clamp_point1, do_clamp=True)
22152215
self.assertEqual(math.ceil(projected_point[0]), 100)
2216-
self.assertEqual(math.ceil (projected_point[1]), 100)
2216+
self.assertEqual(math.ceil(projected_point[1]), 100)
22172217

22182218
projected_point = line.project(test_clamp_point2, do_clamp=True)
22192219
self.assertEqual(math.ceil(projected_point[0]), 0)
22202220
self.assertEqual(math.ceil(projected_point[1]), 0)
22212221

2222-
22232222
def test__str__(self):
22242223
"""Checks whether the __str__ method works correctly."""
22252224
l_str = "Line((10.1, 10.2), (4.3, 56.4))"

0 commit comments

Comments
 (0)