Fix test data and comments in index calculation tests#137
Closed
Copilot wants to merge 4 commits intoindex-progressionfrom
Closed
Fix test data and comments in index calculation tests#137Copilot wants to merge 4 commits intoindex-progressionfrom
Copilot wants to merge 4 commits intoindex-progressionfrom
Conversation
- Fixed line 1272: Updated comment from "4 stars" to "1 star" and index from 16 to 4 - Fixed line 1272: Updated milestone from 20 to 10 to match the corrected index - Fixed line 1330: Updated comment from "4 stars" to "0 stars" (with 100 fkdr) Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
Deploying rainbow with
|
| Latest commit: |
fd77106
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://529210d6.rainbow-ctx.pages.dev |
| Branch Preview URL: | https://copilot-fix-index-calculatio.rainbow-ctx.pages.dev |
Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
- Fixed line 1611: Clarify "0.5 avg stars gained" instead of "0.5 stars per day" - Fixed line 1622: Update formula from 0.1*t to 0.05*t (correct stars per day) - Fixed line 1643: Clarify "0.5 avg stars gained" instead of "0.5 stars per day" - Fixed line 1654: Update formula from 0.1*t to 0.05*t (correct stars per day) Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issues in index calculation tests
Fix test data and comments in index calculation tests
Jan 16, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes incorrect test data and misleading comments in index calculation tests. The changes correct mathematical errors in star-to-experience conversions and progression rate calculations.
Changes:
- Corrected index calculation for 500 exp (1 star, not 4 stars) with adjusted milestone
- Fixed comment describing 0 exp as "0 stars" instead of "4 stars"
- Corrected formula coefficients from 0.1 to 0.05 stars/day in two test cases
- Clarified comments to distinguish between total stars gained vs stars per day
- Fixed variable naming from plural
discriminantsto singulardiscriminant
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Owner
|
Implemented back into #135 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test cases had incorrect expected values and misleading comments due to miscalculations of stars from experience and progression rates.
Issues Fixed
Incorrect index calculations:
Incorrect formula coefficients:
0.1*tfor stars/day, but calculation shows 0.05 stars/day (2435 exp / 4870 avg exp per star / 10 days)Misleading comments:
Variable naming:
discriminants→discriminant(function returns single value)Example
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.