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

tests: improve expectFailForPaths #46

Merged
merged 8 commits into from
Oct 29, 2024
Merged

tests: improve expectFailForPaths #46

merged 8 commits into from
Oct 29, 2024

Conversation

acl-cqc
Copy link
Collaborator

@acl-cqc acl-cqc commented Oct 25, 2024

Note: follows #45, but I think this should go as a separate commit into main, so please do not merge if approved.

  • Move expectFailForPaths from Test/Parsing.hs to Test/Util.hs (I mean, really...)
  • Move parseAndCheck from Test/Util.hs to Test/Checking.hs (I mean, I think....)
  • expectFailForPaths checks that all the paths it was expecting to fail did actually exist. Not all of them were, so remove a couple....

Base automatically changed from tests/error_unused_import to main October 25, 2024 14:24
@acl-cqc acl-cqc requested a review from mark-koch October 25, 2024 14:26
Copy link
Collaborator

@mark-koch mark-koch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, makes sense to move these functions 👍

@acl-cqc acl-cqc merged commit cea653c into main Oct 29, 2024
1 check passed
@acl-cqc acl-cqc deleted the tests/expect_fail_better branch October 29, 2024 09:45
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

Successfully merging this pull request may close these issues.

2 participants