Skip to content

Refer to the actual value as "the actual value," not as "the subject." #1454

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

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

copybara-service[bot]
Copy link
Contributor

Refer to the actual value as "the actual value," not as "the subject."

(#203)

I considered instead using phrases like "the string," we sometimes already do. But I worried that that wasn't always immediately clear about whether we're talking about the actual value or some parameter of the assertion method (which is an expected value or similar). Not that I cared about this enough to go back and change existing occurrences....

This CL probably covers all remaining occurrences in core Truth. I haven't looked at our extensions or our tests.

RELNOTES=n/a

(#203)

I considered instead using phrases like "the string," we [sometimes already do](https://github.com/google/truth/blob/0337b58cf7ca53d89d9badb56d7467c8576f8aa4/core/src/main/java/com/google/common/truth/StringSubject.java#L99). But I worried that that wasn't always immediately clear about whether we're talking about the actual value or some parameter of the assertion method (which is an expected value or similar). Not that I cared about this _enough_ to go back and change existing occurrences....

This CL probably covers all remaining occurrences in core Truth. I haven't looked at our extensions or our tests.

RELNOTES=n/a
PiperOrigin-RevId: 766689205
@copybara-service copybara-service bot merged commit 2aad319 into master Jun 3, 2025
@copybara-service copybara-service bot deleted the test_766683922 branch June 3, 2025 16:06
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.

1 participant