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

A collection of minor test style improvements #192

Merged
merged 6 commits into from
Aug 18, 2024

Conversation

hadley
Copy link
Collaborator

@hadley hadley commented Aug 8, 2024

No description provided.


test_that("glue works", {
local_test_logger(formatter = formatter_glue)
a <- 43
Copy link
Owner

Choose a reason for hiding this comment

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

so what's the meaning of 43? 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Haha, I just changed it because I think it's good to use a different value than 42 to hint that we're testing a different mechanism. And while it doesn't really apply here, there's always some risk to reusing the same test value too many times, because it won't catch bugs where the previous value bleeds through to the next expectation.

Copy link
Owner

@daroczig daroczig left a comment

Choose a reason for hiding this comment

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

thanks 🙇

@daroczig daroczig merged commit 801a6a7 into daroczig:main Aug 18, 2024
14 checks passed
@hadley hadley deleted the test-style branch August 18, 2024 23: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