Skip to content

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
@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