Skip to content

Commit

Permalink
Update test description.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Nov 9, 2024
1 parent 45884f7 commit d0feaed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/utils/math.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ describe("clamp", () => {
expect(clamp(100, 1, 10)).toBe(10);
});

test("returns the upper boundary when max is less than min", () => {
expect(clamp(5, 10, 1)).toBe(1);
});
test(
"returns the upper boundary when the upper boundary is less than the lower boundary",
() => {
expect(clamp(5, 10, 1)).toBe(1);
}
);
});

describe("getChunkNum", () => {
Expand Down

0 comments on commit d0feaed

Please sign in to comment.