def test_MultipleDicesOfDifferentSides(self): rolls = roller.rollDices("!r 3d6 5d5") self.assertEqual(len(rolls), 2) self.assertEqual(len(rolls[0]), 3) self.assertEqual(len(rolls[1]), 5)
def test_SingleDicesOfDifferentSides(self): rolls = roller.rollDices("!r d6 d5") self.assertEqual(len(rolls), 2) self.assertEqual(len(rolls[0]), 1) self.assertEqual(len(rolls[1]), 1)
def test_SingleDice(self): rolls = roller.rollDices("!r d6") self.assertEqual(len(rolls), 1) self.assertEqual(len(rolls[0]), 1)
def test_MultipleDicesOfSameSides(self): rolls = roller.rollDices("!r 5d6") self.assertEqual(len(rolls), 1) self.assertEqual(len(rolls[0]), 5)
async def r(self, ctx: Context): """ Report feedback or issues with the bot """ await ctx.send(roller.rollDices(ctx.message.content))