mirror of
https://github.com/dmuth/diceware.git
synced 2024-11-24 01:36:36 -05:00
Updated test
This commit is contained in:
parent
6c99fd1168
commit
76ae54fc07
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ QUnit.test("Roll some dice!", function(assert) {
|
|||
assert.equal(Diceware.rollDice(3).roll.length, 3);
|
||||
assert.equal(Diceware.rollDice(8).roll.length, 8);
|
||||
|
||||
assert.ok(parseInt(Diceware.rollDice(1).value));
|
||||
//
|
||||
// These may fail infrequently if the random number is zero.
|
||||
//
|
||||
assert.ok(parseInt(Diceware.rollDice(3).value));
|
||||
assert.ok(parseInt(Diceware.rollDice(8).value));
|
||||
|
||||
|
|
Loading…
Reference in a new issue