mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-08-11 03:09:57 +00:00
fix(v3): floor accuracy percentages so 100% means all notes hit
Math.round let 431/433 (99.54%) display as 100%. Floor at every accuracy display site (HUD, library badges, dashboard, lessons, profile, playlists, calibration overlay); stored fractions and mastery thresholds unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
e2215df753
commit
81ef11d855
@@ -170,7 +170,8 @@ test('DOM text updates after hit and miss events', () => {
|
||||
runtime.onHit();
|
||||
runtime.onMiss();
|
||||
|
||||
assert.equal(els.percent.textContent, '67%');
|
||||
// Floored, not rounded: 100% must mean every judged note was hit.
|
||||
assert.equal(els.percent.textContent, '66%');
|
||||
assert.equal(els.hits.textContent, 'Hits 2 / 3');
|
||||
assert.equal(els.streak.textContent, 'Streak 0');
|
||||
assert.match(els.state.textContent, /Recovering/);
|
||||
|
||||
Reference in New Issue
Block a user