Skip to content

Commit dafc7a9

Browse files
authored
Merge pull request jimmysong#126 from Ice101781/patch-3
Fix test_add2() for consistency with the Exercises
2 parents 6662c96 + d5144ef commit dafc7a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code-ch02/ecc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,5 @@ def test_add1(self):
202202
self.assertEqual(a + b, Point(x=2, y=-5, a=5, b=7))
203203

204204
def test_add2(self):
205-
a = Point(x=-1, y=1, a=5, b=7)
206-
self.assertEqual(a + a, Point(x=18, y=-77, a=5, b=7))
205+
a = Point(x=-1, y=-1, a=5, b=7)
206+
self.assertEqual(a + a, Point(x=18, y=77, a=5, b=7))

0 commit comments

Comments
 (0)