catchorg / catchorg/Catch2

Stringification of small numbers

Open
#2,238 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

If a test with small numbers fail, the output is not helpful. We get for example:

```
CHECK( constants::electric == 8.8541878128e-12 )
with expansion:
0.0 == 0.0
```

The output should fall back to exponential format for small numbers.

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.