Skip to content

Add more tests to your PR#2

Merged
snopan merged 2 commits intosnopan:masterfrom
ccoveille-forks:pr-1863-snopan-add-tests
Mar 19, 2026
Merged

Add more tests to your PR#2
snopan merged 2 commits intosnopan:masterfrom
ccoveille-forks:pr-1863-snopan-add-tests

Conversation

@ccoVeille
Copy link
Copy Markdown

No description provided.

This is to ensure that the function being tested is symmetric in its arguments,
which is a common expectation for equality checks.
Copilot AI review requested due to automatic review settings March 18, 2026 07:25
@ccoVeille
Copy link
Copy Markdown
Author

I feel like your code is fine in fact, so me tests could be merged, and then they would appear in your PR

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR expands the assert package’s equality helper tests to cover additional floating-point edge cases and to enforce symmetry of comparisons.

Changes:

  • Add NaN, Inf, and signed-zero (-0) cases to TestObjectsAreEqual.
  • Add more float32/float64 edge cases (near-overflow, NaN, Inf, signed zero) to TestObjectsAreEqualValues.
  • Add symmetry assertions to both equality test suites to ensure f(a, b) == f(b, a).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@snopan snopan merged commit f83e360 into snopan:master Mar 19, 2026
3 of 4 checks passed
@ccoVeille ccoVeille deleted the pr-1863-snopan-add-tests branch March 19, 2026 06:56
snopan added a commit that referenced this pull request Mar 19, 2026
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.

3 participants