Conversation
42 property tests covering mathematical invariants (equivariance, boundedness, round-trips) for descriptives.py, smoothing.py, and call.py. Also fixes a bug in weighted_median where a signed comparison (cumulative_weight[idx-1] - midpoint < epsilon) always evaluated True, causing incorrect averaging of adjacent values. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@claude Please review. |
|
Claude finished @etal's task —— View job PR Review Complete ✅Reviewing PR #1042: Add Hypothesis property-based tests Todo List:
SummaryThis is an excellent PR that adds robust property-based testing using Hypothesis and fixes a critical bug. The implementation demonstrates strong understanding of mathematical invariants and thorough testing practices. ✅ Strengths1. Critical Bug Fix (
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1042 +/- ##
==========================================
+ Coverage 65.68% 66.10% +0.42%
==========================================
Files 72 72
Lines 7375 7375
Branches 1294 1294
==========================================
+ Hits 4844 4875 +31
+ Misses 2094 2061 -33
- Partials 437 439 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
descriptives.py,smoothing.py, andcall.pyweighted_medianwhere a signed comparison always evaluated True, causing incorrect averaging of adjacent valueshypothesis[numpy]to test dependencies and configures pytest markers/settingsTest plan
cnvlib/descriptives.pyCloses #1038
🤖 Generated with Claude Code