Skip to content

Commit caf47a1

Browse files
committed
dice: one more test case!
As Exirel pointed out, 0 isn't a negative number, and who knows? The plugin's behavior could start to allow 0-sided dice in the future.
1 parent deb4d5e commit caf47a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sopel/modules/dice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def _roll_dice(dice_match: re.Match[str]) -> DicePouch:
220220
"I don't know how to process that. "
221221
"Are the dice as well as the algorithms correct?")
222222
@plugin.example(".roll 65(2)", "I couldn't find any valid dice expressions.")
223+
@plugin.example(".roll 2d-2", "I don't have any dice with -2 sides.")
223224
@plugin.example(".roll 1d0", "I don't have any dice with 0 sides.")
224225
@plugin.example(".roll -1d6", "I can't roll -1 dice.")
225226
@plugin.example(".roll 3d6v-1", "I can't drop the lowest -1 of 3 dice.")

0 commit comments

Comments
 (0)