Release v0.1.7 2026-07-12
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { highestRoguelikeRoundAfterDefeat } from "./hunterStats";
|
||||
import { highestEndlessBossKillsAfterDefeat, highestRoguelikeRoundAfterDefeat } from "./hunterStats";
|
||||
|
||||
describe("roguelike hunter records", () => {
|
||||
it("records the reached defeat round without lowering a previous best", () => {
|
||||
@@ -13,3 +13,16 @@ describe("roguelike hunter records", () => {
|
||||
expect(highestRoguelikeRoundAfterDefeat(4.9, 8.9)).toBe(8);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Rogue Trials endless hunter records", () => {
|
||||
it("keeps the highest boss count from one endless run", () => {
|
||||
expect(highestEndlessBossKillsAfterDefeat(0, 17)).toBe(17);
|
||||
expect(highestEndlessBossKillsAfterDefeat(17, 9)).toBe(17);
|
||||
expect(highestEndlessBossKillsAfterDefeat(17, 23)).toBe(23);
|
||||
});
|
||||
|
||||
it("normalizes invalid and fractional kill counts", () => {
|
||||
expect(highestEndlessBossKillsAfterDefeat(Number.NaN, Number.NaN)).toBe(0);
|
||||
expect(highestEndlessBossKillsAfterDefeat(4.9, 8.9)).toBe(8);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user