For Any reason Test_module.unit test keeps failing at Polygon Area Calculator! Python

FAIL: test_diagonal (test_module.UnitTests)

Traceback (most recent call last):
File “/home/runner/boilerplate-polygon-area-calculator/”, line 56, in test_diagonal
self.assertEqual(actual, expected, ‘Expected diagonal of rectangle to be 6.708203932499369’)
AssertionError: 15.0 != 6.708203932499369 : Expected diagonal of rectangle to be 6.708203932499369

Ran 15 tests in 0.001s

FAILED (failures=1)

It looks like your rectangle has a diagonal of 15.0 but the test expects the diagonal to be 6.708203932499369. Does this give you an idea of what to check in your code?

Post a link to your replit if you need more help.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.