Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for do while loop #1

Open
ericdriggs opened this issue May 16, 2024 · 2 comments
Open

Add support for do while loop #1

ericdriggs opened this issue May 16, 2024 · 2 comments
Assignees
Labels
bug Something isn't working fixed

Comments

@ericdriggs
Copy link

@Test
void testDoWhileLoop() {
    eval("a = 0; do { a++ } while(a <= 5)");
    assertEquals(5, get("a"));
}
ptrthomas added a commit that referenced this issue May 17, 2024
@ptrthomas ptrthomas self-assigned this May 17, 2024
@ptrthomas ptrthomas added bug Something isn't working fixed labels May 17, 2024
@ptrthomas
Copy link
Member

fixed, thanks for the report @ericdriggs - also this should demonstrate how easy it is to maintain the parser

@ericdriggs
Copy link
Author

Thanks.
I agree on maintainability.
I was also surprised how concise the implementation was, and pleased how easy it was to make a failing test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants