diff options
Diffstat (limited to '__tests__/dice.test.js')
-rw-r--r-- | __tests__/dice.test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/__tests__/dice.test.js b/__tests__/dice.test.js index 4828ce4..83b8a9d 100644 --- a/__tests__/dice.test.js +++ b/__tests__/dice.test.js @@ -1,4 +1,4 @@ -const { constant, d, add, subtract } = require('../src/dice.js') +const { pool, constant, d, add, subtract } = require('../src/dice.js') const defaultNumberRolls = 500 const defaultError = 0.2 @@ -72,7 +72,7 @@ const rollForTest = (die, numberRolls) => { let rolls = [] for (let i = 0; i < numberRolls; i++) { - let rolled = die() + let rolled = pool(die) pools.push(rolled) rolls.push(rolled.reduce(plus)) } |