mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-05 21:38:06 +03:00
Add some iidx evil edge case handling
This commit is contained in:
@@ -20,6 +20,16 @@ t.test("#GetGradeForPercent", (t) => {
|
||||
"MAX",
|
||||
"Should return SSS for the edge case of 100% == MAX (iidx DP)."
|
||||
);
|
||||
t.equal(
|
||||
GetGradeFromPercent("iidx", "SP", 100 * (1932 / 2484)),
|
||||
"AA",
|
||||
"Should return AA for the edge case of 77.77...% (iidx SP)."
|
||||
);
|
||||
t.equal(
|
||||
GetGradeFromPercent("iidx", "SP", 100 * (7 / 9)),
|
||||
"AA",
|
||||
"Should return AA for the edge case of 77.77...% (iidx SP)."
|
||||
);
|
||||
|
||||
t.equal(
|
||||
GetGradeFromPercent("iidx", "SP", 0),
|
||||
|
||||
Reference in New Issue
Block a user