Skip to content

Negative Fibonacci Function Error #2

Description

@pskodr

Reproduce this error by running python tests in the Actions Tab (main branch)

The job is failing due to a RecursionError in your fibonacci function when testing for zeroth and negative numbers (see test_fib.py). The current implementation of fibonacci in fib.py does not handle the base case for 0 or for negative input, resulting in infinite recursion:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions