Skip to content

Conversation

hadley
Copy link
Member

@hadley hadley commented Oct 6, 2025

Fixes #1836. Fixes #2235

Copy link

claude bot commented Oct 6, 2025

Claude finished @hadley's task —— View job


Code Review

  • Review new expect_all_equal() implementation
  • Check test coverage and snapshots
  • Review modifications to expect-match.R
  • Identify potential bugs or issues
  • Provide minimal feedback

Analysis

The PR introduces expect_all_equal() - a function to test that all elements in a vector equal a single expected value. Implementation looks solid:

  • Input validation is comprehensive (R/expect-all.R:5-13)
  • Uses existing expect_waldo_equal_() infrastructure correctly
  • Test coverage is good with edge cases and error scenarios
  • Snapshots show appropriate error messages

The refactoring of show_text() in expect-match.R improves the API by making the labels parameter more generic.

LGTM.

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.

Suggest a new expectation around "Vector with a constant value" all= argument for expect_true()/expect_false()
1 participant