Skip to content

Commit

Permalink
dice: one more test case!
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgw committed Oct 29, 2023
1 parent deb4d5e commit caf47a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sopel/modules/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def _roll_dice(dice_match: re.Match[str]) -> DicePouch:
"I don't know how to process that. "
"Are the dice as well as the algorithms correct?")
@plugin.example(".roll 65(2)", "I couldn't find any valid dice expressions.")
@plugin.example(".roll 2d-2", "I don't have any dice with -2 sides.")
@plugin.example(".roll 1d0", "I don't have any dice with 0 sides.")
@plugin.example(".roll -1d6", "I can't roll -1 dice.")
@plugin.example(".roll 3d6v-1", "I can't drop the lowest -1 of 3 dice.")
Expand Down

0 comments on commit caf47a1

Please sign in to comment.