Skip to content

Commit 3f5a3e1

Browse files
committed
fix: Fix percentile test
1 parent 7b17f39 commit 3f5a3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elo/src/Shared/EloUtils.spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ describe("EloUtils.getNewElo", function()
7575
it("should compute percentile as 0.5", function()
7676
local percentile = EloUtils.getPercentile(config, 1400)
7777

78-
expect(percentile).toBe(0.5)
78+
expect(percentile).toBeCloseTo(0.5, 5)
7979
end)
8080
end)

0 commit comments

Comments
 (0)