Skip to content
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

[MINOR] Bug ignore nan in test #2101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Baunsgaard
Copy link
Contributor

I discovered something concerning,
the default compareMatrices function in TestUtils use a flag to compare cell values, called ignoreNaN.

When this flag is enabled we compare cells with:

if( ignoreNaN && (v1.isNaN() || v1.isInfinite() || v2.isNaN() || v2.isInfinite()) )
   return true;

This means that all tests using cellCompare, ignore comparing if any side contains a infinite or NaN.
This flag unfortunately invalidate the result of many tests and therefore i open this PR to validate which tests are affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant