intel / intel/rohd-hcl

FP NaN are not comparable (e.g. nan != nan)

Open
#252 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.