FP NaN are not comparable (e.g. nan != nan)
Open
bug
- Dominant language
- Dart
- Stars
- 115
- Forks
- 39
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 1
Description
### Describe the bug
Floating-point values that are NaN are not comparable. So all tests should check if computed.isNan equals expected.isNaN before checking if computed == expected.
### To Reproduce
Create two NaN values and compare them. They should not be equal even if their bitfields are.
### Expected behavior
_No response_
### Actual behavior
_No response_
### Additional: Dart SDK info
_No response_
### Additional: pubspec.yaml
```yaml
```
### Additional: Context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.