Hill Climbing
In the hill climbing exercise I get the following graph showing that the climber is on the peak and yet it shows errors
The error displayed is:
The answer is not correct - Test cases: 0 / 1
File "/usr/local/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/local/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/local/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/app/test/test_main.py", line 23, in test_answer
self.assertGreaterEqual(h[x], h[x + n])
File "/usr/local/lib/python3.8/unittest/case.py", line 1316, in assertGreaterEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/usr/local/lib/python3.8/unittest/case.py", line 753, in fail
raise self.failureException(msg)
Error: 1.0767950139618807 not greater than or equal to 1.077713566515441What is wrong?