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

test: additional tests of splitRecord #1770

Merged
merged 1 commit into from
Sep 14, 2023
Merged

test: additional tests of splitRecord #1770

merged 1 commit into from
Sep 14, 2023

Conversation

turadg
Copy link
Member

@turadg turadg commented Sep 14, 2023

More test coverage of M.splitRecord

@turadg turadg requested a review from erights September 14, 2023 18:45
Copy link
Contributor

@erights erights left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Comment on lines +333 to +334
successCase(specimen, M.splitRecord({}, undefined, undefined));
successCase(specimen, M.splitRecord({}, { unused: M.string() }));
Copy link
Contributor

Choose a reason for hiding this comment

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

Whether it was a good or bad convention, I seem to have followed a convention of grouping success cases together, followed by fail cases. I don't feel strongly about this, but I'd prefer these success cases be moved up to be in the success case group.

Copy link
Member Author

Choose a reason for hiding this comment

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

As a reader, whether something is a success or fail case is starkly apparent from the function call.

What's not so apparent is what tests are aspects of the same behavior. I've used the ordering here to group that and I think it's wortwhile.

@turadg turadg merged commit 66bb24c into master Sep 14, 2023
@turadg turadg deleted the ta/test-splitRecord branch September 14, 2023 20:47
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