catchorg / catchorg/Catch2

Should Approx be more generic?

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

Description

Currently Approx only supports types that can be converted to double.
However, For fixed-point numbers, or fuzzy match strings, Approx should also work. But it requires the user to customize their specific version.
I 'd be happy if Approx provide a template parameter and default to double. It will make Approx more usable.

Would you be ok with a PR related to this?

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.