Skip to content

test(calculate): verify streak formulas for multiple weeks gaps timeline (Variation 2) #1479

@souravjhahind

Description

@souravjhahind

🧩 Background

Streak computation calculations are susceptible to off-by-one errors when managing calendar offsets and date boundaries.

🎯 Objective

Add a specific test simulating weeks with 0 commits separating two active contribution stretches.

📁 Files to touch

  • lib/calculate.test.ts

🛠️ Implementation steps

  • Configure custom contribution data matching this pattern.
  • Execute the streak calculator and assert accurate currents and longest values.

✅ Definition of done

  • 1 new test case simulating this specific timeline.
  • All streak mathematical assertions are accurate.

Metadata

Metadata

Labels

GSSoC 2026SVG / MathTasks involving the 3D isometric rendering, geometry, or SVG animations.good first issueGood for newcomerstests

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions