Skip to content

chore: Add tests for index progression calculation#135

Open
Amund211 wants to merge 1 commit intomainfrom
index-progression
Open

chore: Add tests for index progression calculation#135
Amund211 wants to merge 1 commit intomainfrom
index-progression

Conversation

@Amund211
Copy link
Copy Markdown
Owner

Add manually computed and verified test cases that cover a large amount
of edge cases.
This should be a good starting point for implementation, and might allow
an AI agent to make a verifiably correct implementation.

Copilot AI review requested due to automatic review settings January 15, 2026 22:02
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jan 15, 2026

Deploying rainbow with  Cloudflare Pages  Cloudflare Pages

Latest commit: 221ad50
Status: ✅  Deploy successful!
Preview URL: https://69fc0a8b.rainbow-ctx.pages.dev
Branch Preview URL: https://claude-index-progression-imp.rainbow-ctx.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive test cases for index progression calculation in BedWars stats tracking. The tests cover various edge cases involving the cubic equation that models how the index (fkdr² × stars) changes over time based on player progression patterns.

Changes:

  • Adds 13 manually computed and verified test cases for index stat progression covering edge cases like no progress, increasing/decreasing FKDR, plateau scenarios, and complex cubic equation behaviors
  • Imports bedwarsLevelFromExp function to support accurate star level calculations in test setup
  • Includes mathematical validation of cubic equation coefficients and discriminants for each test case

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Amund211 Amund211 force-pushed the index-progression branch 2 times, most recently from 3b10455 to 577be0b Compare January 17, 2026 12:56
Add manually computed and verified test cases that cover a large amount
of edge cases.
This should be a good starting point for implementation, and might allow
an AI agent to make a verifiably correct implementation.
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.

2 participants