Fix randIntWithout test case

This commit is contained in:
Joke Book 2020-05-07 16:37:01 +01:00
parent e5cc0e302d
commit 8700a70262

View file

@ -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);
});