Skip to content

Tests: use strict assertions #247

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
May 26, 2022
Merged

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented May 26, 2022

assertEquals() comes down to a loose type == comparison, while assertSame() does a strict type === comparison, so if at all possible, one should always use assertSame() instead of assertEquals().

`assertEquals()` comes down to a loose type `==` comparison, while `assertSame()` does a strict type `===` comparison, so if at all possible, one should always use `assertSame()` instead of `assertEquals()`.
@jrfnl jrfnl requested a review from sirbrillig May 26, 2022 03:56
@sirbrillig sirbrillig merged commit 562e47c into 2.x May 26, 2022
@sirbrillig sirbrillig deleted the feature/tests-use-strict-assertions branch May 26, 2022 21:40
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