Skip to content

test: add 22 edge case tests for scoring functions#16

Merged
dotsystemsdevs merged 12 commits intodotsystemsdevs:mainfrom
mvanhorn:osc/12-scoring-test-coverage
Apr 7, 2026
Merged

test: add 22 edge case tests for scoring functions#16
dotsystemsdevs merged 12 commits intodotsystemsdevs:mainfrom
mvanhorn:osc/12-scoring-test-coverage

Conversation

@mvanhorn
Copy link
Copy Markdown
Contributor

@mvanhorn mvanhorn commented Apr 7, 2026

Summary

  • Adds 22 new test cases covering all exported scoring functions
  • Tests computeDeathIndex edge cases: archived repos, recent commits, cap behavior, modest scores
  • Tests getDeathLabel boundary values for all four label ranges
  • Tests determineCauseOfDeath: known repos (atom/atom), forks, null descriptions, archived repos, easter egg
  • Tests generateLastWords: fix typo, update readme, wip, merge, long message truncation, easter egg
  • Tests computeAge: same month, exactly 1 year, multi-year with months, singular forms
  • Tests formatDate: en-GB locale output

Test plan

  • All 23 tests pass (npm test)
  • CI passes

Closes #12

dotsystemsdevs and others added 12 commits March 29, 2026 11:13
ux: hover effects on all certificate buttons + polish README
Updated badge for commitment issues with a new design.
Cover computeDeathIndex, getDeathLabel, determineCauseOfDeath,
generateLastWords, computeAge, and formatDate with edge cases
including archived repos, known repos, forks, missing descriptions,
commit message patterns, long message truncation, and date boundaries.

Closes dotsystemsdevs#12
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 7, 2026

@mvanhorn is attempting to deploy a commit to the Dotsystems 9999 Team on Vercel.

A member of the Team first needs to authorize it.

@dotsystemsdevs dotsystemsdevs merged commit 47827aa into dotsystemsdevs:main Apr 7, 2026
1 check failed
@mvanhorn
Copy link
Copy Markdown
Contributor Author

Thanks for the merge, @dotsystemsdevs!

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.

Improve scoring test coverage

2 participants