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 tests for munstream #418

Merged
merged 3 commits into from
Sep 26, 2021
Merged

Add tests for munstream #418

merged 3 commits into from
Sep 26, 2021

Conversation

Shimuuar
Copy link
Contributor

While working on unstreaming machinery (See #301, #388, #406 for context) I found out that we don't test unstream at all. One could replace its definition with undefined and tests will still pass. This PR fixes this situation by adding tests that unstream, vunstream and unstreamR produce identical results.

There're few cleanups for the test suite.

Copy link
Contributor

@lehins lehins left a comment

Choose a reason for hiding this comment

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

This looks great. Less CPP makes me happy 😄

It turns out we don't exercise munstream in the test suite at all. (Easy check
is to replace definition with undefined and run test) This is to check
equivalence of all variants.

This is necessary for any changes to unstream machinery. Such as ones that
discussed in haskell#301, haskell#388, haskell#406
@Shimuuar Shimuuar merged commit b592c22 into haskell:master Sep 26, 2021
@Shimuuar Shimuuar deleted the munstream-test branch September 26, 2021 15:07
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