From caf47a1ec2f75b98fcab664244d4cf92ea80cbfd Mon Sep 17 00:00:00 2001 From: dgw Date: Sun, 29 Oct 2023 09:02:53 -0500 Subject: [PATCH] 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. --- sopel/modules/dice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sopel/modules/dice.py b/sopel/modules/dice.py index 8a6192a0e..cc8f88bbd 100644 --- a/sopel/modules/dice.py +++ b/sopel/modules/dice.py @@ -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.")