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

fix pattern matching test failure #25

Closed
Anton-4 opened this issue May 2, 2023 · 2 comments
Closed

fix pattern matching test failure #25

Anton-4 opened this issue May 2, 2023 · 2 comments
Assignees

Comments

@Anton-4
Copy link
Collaborator

Anton-4 commented May 2, 2023

This fails with the latest roc nightly, not sure why though

❯ ./roc_nightly/roc test ./examples/PatternMatching/PatternMatching.roc
── EXPECT FAILED ────────────── ./examples/PatternMatching/PatternMatching.roc ─

This expectation failed:

55│>  # Pattern match on a list with these exact elements: Foo, Bar, and then Baz
56│>  expect
57│>      patternMatch = \input ->
58│>          when input is
59│>              [Foo, Bar, Baz] -> Bingo
60│>              _ -> Other
61│>
62│>      (patternMatch [Foo, Bar, Baz] == Bingo)
63│>      && (patternMatch [Foo, Bar] != Bingo)
64│>      && (patternMatch [Foo, Bar, Baz, Barry] != Bingo)



1 failed and 6 passed in 197 ms.
@Anton-4 Anton-4 self-assigned this May 3, 2023
@Anton-4
Copy link
Collaborator Author

Anton-4 commented May 3, 2023

Narrowed this down to a simpler case and a specific commit here.

@Anton-4
Copy link
Collaborator Author

Anton-4 commented May 5, 2023

This should be fixed when roc-lang/roc#5354 is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant