-
Notifications
You must be signed in to change notification settings - Fork 479
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
PIR: restructure tests #5570
PIR: restructure tests #5570
Conversation
rename | ||
, test_scopingSpoilRenamer genProgram markNonFreshProgram | ||
, T.test_scopingSpoilRenamer genProgram markNonFreshProgram | ||
renameProgramM | ||
-- Can't test substitution procedures at the moment, because that requires generating | ||
-- functions. | ||
, -- The pass breals global uniqueness by design. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"breals" typo?
pure . recSplit | ||
, test_scopingGood "renaming" genProgram BindingRemovalNotOk PrerenameNo $ | ||
, T.test_scopingGood "renaming" genProgram T.BindingRemovalNotOk T.PrerenameNo $ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant $
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's there for consistency, I think I'm fine with it.
Inline.inline mempty def | ||
, test_scopingGood "match-against-known-constructor" genTerm BindingRemovalNotOk PrerenameNo $ | ||
, T.test_scopingGood "match-against-known-constructor" genTerm T.BindingRemovalNotOk T.PrerenameNo $ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant $
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks!
Just some linter suggestions e.g. redundant bracket for inQuotedName.
Are you still considering the other approach of putting the tests right in src
?
Apparently it doesn't work as well as I'd thought it might. Also, if we did want to do it, it would be quite easy to do on top of this: just merge the source folders! So this gets us 90% of the way there regardless. |
I'm not going to fix all the lint suggestions in the tests, that's a whole thing in itself 😅 |
This restructures the tests for PIR following the discussion we had before. Just the test-naming and tasty-discover bits so far. I'll do UPLC and TPLC later.