LeastFixedPoint / wave-dice-robot

Automatically exported from code.google.com/p/wave-dice-robot
0 stars 0 forks source link

parse missing number of dice as 1 (e.g. d6 -> 1d6) #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
@Test
public void testDieRollWithImplicitNumberOfDice()
{
 final AdditiveRoll method = new AdditiveRoll(mockDieRollerFactory(1, 6, 3));
 final MockOutput output = new MockOutput();
 method.writeResult("d6", output);
 Assert.assertEquals("1", output.getString());
}

Original issue reported on code.google.com by trent.ba...@gmail.com on 1 Nov 2009 at 7:29

GoogleCodeExporter commented 9 years ago
attached fix

Original comment by trent.ba...@gmail.com on 1 Nov 2009 at 9:54

Attachments:

GoogleCodeExporter commented 9 years ago
This is a good idea, I'll try applying your patch, thanks :)

Original comment by shooshpa...@gmail.com on 2 Nov 2009 at 9:32

GoogleCodeExporter commented 9 years ago

Original comment by shooshpa...@gmail.com on 2 Nov 2009 at 10:01

GoogleCodeExporter commented 9 years ago

Original comment by shooshpa...@gmail.com on 2 Nov 2009 at 10:24