Skip to content

Add tests for gsdd() and gdd() with truncated second season - #46

Merged
joethorley merged 1 commit into
mainfrom
test-truncated-season
Sep 24, 2026
Merged

joethorley merged 1 commit into
mainfrom
test-truncated-season

Conversation

@joethorley

Copy link
Copy Markdown
Member

Adds snapshot tests documenting that gsdd() and gdd() return NA for a year when one of the growing seasons is truncated, even if another season in that year is complete.

The tests mirror the existing gss() truncation test: the two-season temperature2 series is blanked from 2019-08-28 onward so the second season is truncated at the end.

🤖 Generated with Claude Code

Document that a year with one complete and one truncated growing
season returns NA rather than the sum of the complete seasons.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@joethorley
joethorley merged commit 498c34c into main Sep 24, 2026
7 checks passed
@joethorley
joethorley deleted the test-truncated-season branch September 24, 2026 19:39
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