From 8700a70262afdede968eae98fe87e53f69ed911d Mon Sep 17 00:00:00 2001 From: Joke Book Date: Thu, 7 May 2020 16:37:01 +0100 Subject: [PATCH] Fix randIntWithout test case --- test/unit/util_math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/util_math.js b/test/unit/util_math.js index d29f7c47..7196df95 100644 --- a/test/unit/util_math.js +++ b/test/unit/util_math.js @@ -63,6 +63,6 @@ test('inclusiveRandIntWithout', t => { t.strictEqual(withRandomValue(1 / 6, 0, 6, 2), 1); t.strictEqual(withRandomValue(1.9 / 6, 0, 6, 2), 1); - t.strictEqual(withRandomValue(3 / 4, 10, 14, 10), 13); + t.strictEqual(withRandomValue(3 / 4, 10, 14, 10), 14); t.strictEqual(withRandomValue(0 / 4, 10, 14, 10), 11); });