Skip to content

Loops execute their body even when the initial condition is false #41

Open

Description

@theodore-s-beers

Running ralph ❌ { hallucinate(“never”)✨ } prints never even though the body should never execute. Add a failing regression test in tests/test_loops.py, then check the condition before every iteration, including the first.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions