Skip to content

docs: add required includes to floating-point comparison examples (#2519)#3121

Open
leno23 wants to merge 1 commit into
catchorg:develfrom
leno23:docs/floating-point-include-headers-2519
Open

docs: add required includes to floating-point comparison examples (#2519)#3121
leno23 wants to merge 1 commit into
catchorg:develfrom
leno23:docs/floating-point-include-headers-2519

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 30, 2026

Summary

  • Add #include lines to WithinAbs, WithinRel, WithinULP, combined matcher, and Approx examples in docs/comparing-floating-point-numbers.md

Continues #3118#3120; partial fix for #2519.

Test plan

  • Markdown-only change

Made with Cursor

…tchorg#2519)

Show catch_test_macros.hpp and matcher/Approx headers in REQUIRE_THAT
and Approx examples.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.30%. Comparing base (69e0473) to head (4c60a24).

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3121      +/-   ##
==========================================
+ Coverage   91.26%   91.30%   +0.03%     
==========================================
  Files         204      204              
  Lines        8905     8905              
==========================================
+ Hits         8127     8130       +3     
+ Misses        778      775       -3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant