test: add regression tests for chunithm SSS

This commit is contained in:
zkldi
2022-07-17 23:14:50 +01:00
parent e34bac8226
commit ee9faafbc8
@@ -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();
});