mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-29 02:18:09 +03:00
test: add regression tests for chunithm SSS
This commit is contained in:
@@ -8,7 +8,7 @@ t.test("#GetGradeForPercent", (t) => {
|
||||
t.equal(
|
||||
GetGradeFromPercent("chunithm", "Single", 101),
|
||||
"SSS",
|
||||
"Should return SSS for the edge case of chunithms 101% == SS."
|
||||
"Should return SSS for the edge case of chunithms 101%."
|
||||
);
|
||||
t.equal(
|
||||
GetGradeFromPercent("iidx", "SP", 100),
|
||||
@@ -47,6 +47,11 @@ t.test("#GetGradeForPercent", (t) => {
|
||||
"Should return SSS for the edge case of 0% == F (iidx DP)."
|
||||
);
|
||||
|
||||
t.throws(
|
||||
() => GetGradeFromPercent("iidx", "DP", -1),
|
||||
"Should throw if percent is unresolvable."
|
||||
);
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user