Exercise 10 Int: Code is working but not being tested
I have no idea why it is not working and neither ChatGPT nor Gemini were able to help me with it. My code is super simple so I have no idea how it can fail. I would really appreciate any help.
def flip(n):
odds = 1.0 * 2**n
print(odds)
flip(n)The error is the following:
The answer is not correct - Test cases: 0 / 4
File "/usr/local/lib/python3.12/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/local/lib/python3.12/unittest/case.py", line 634, in run
self._callTestMethod(testMethod)
File "/usr/local/lib/python3.12/unittest/case.py", line 589, in _callTestMethod
if method() is not None:
^^^^^^^^
File "/app/test/test_main.py", line 20, in test_answer_two
main(1)
File "/app/tmc/utils.py", line 10, in fail
raise AssertionError(err)
Error: src.main.flip does not exist!