Skip to content

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Sep 7, 2025

Following #1436 (comment), this PR changes issymmetric to always return true for Numbers, and analogously ishermitian for real numbers. This makes these methods type-based instead of value-based. The only exception at present was for NaN and related numbers that didn't satisfy x == x. This PR ignores such cases.

Copy link

codecov bot commented Sep 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.89%. Comparing base (1f55352) to head (40d5a4f).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1435   +/-   ##
=======================================
  Coverage   93.89%   93.89%           
=======================================
  Files          34       34           
  Lines       15900    15900           
=======================================
  Hits        14929    14929           
  Misses        971      971           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jishnub jishnub changed the title isnan check in issymetric/ishermitian for Numbers Make issymmetric unconditionally true for Numbers Sep 20, 2025
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