Repository navigation
refactor(tests): extract fixed_point_constexpr.cpp (re-opening as #3136 closed when #3135 merged) - #3159
Conversation
…pp (part of #3130) Second extraction in #3130. Moves the constexpr validation section (original lines 811-1129 + the constexpr_raw_check helper at 120-124) into its own file: - constexpr raw() compile-time check (all 13 types) - constexpr from_raw compile-time check - constexpr arithmetic operators - constexpr comparisons - constexpr conversions - constexpr math functions (mod, floor, ceil, fract, abs, sign, lerp, clamp, step, sqrt, rsqrt) - constexpr value verification (concrete value computations) Plus the 23 constexpr_*_check<T>(...) helper templates that the tests use; they were only referenced by the moved test cases. The original section header "Concrete Bit-Exact Tests (All Types)" now correctly introduces the bit-exact tests that remain in fixed_point.cpp. Tests pass: bash test fl_math_fixed_point --cpp (1/1, 0.27s test time). fixed_point.cpp: 4,816 -> 4,488 LOC fixed_point_constexpr.cpp (new): 343 LOC Stacked on top of feat/3130-fixed-point-misc-extract (PR #3135) because both PRs depend on the same ci/hooks/check_test_file_pairing.py sibling- split allowance that #3135 introduces. Part of #3130. Meta tracking issue: #3127. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughConstexpr fixed-point test cases are extracted from ChangesConstexpr fixed-point test extraction
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reopens the work from #3136 (closed when its base branch #3135 was merged and deleted). Now targets master directly.
Original #3136 description preserved — moves constexpr validation section (343 LOC) from fixed_point.cpp into fixed_point_constexpr.cpp.
Part of #3130. Meta: #3127.
Summary by CodeRabbit