Permalink
Browse files

fix dice tests, again...

  • Loading branch information...
1 parent fcc66b2 commit df750047473fa87735ba65ee5d455a872a9ae162 @crazedpsyc crazedpsyc committed Jun 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 t/Dice.t
View
@@ -15,10 +15,10 @@ ddg_goodie_test(
'throw dice' => test_zci(qr/^\d \d$/),
"roll 5 dice" => test_zci(qr/\d \d \d \d \d/),
"throw die" => test_zci(qr/^\d$/),
- "roll 2d6" => test_zci(qr/^\d \+ \d = \d+$/),
- "roll 3d12 + 4" => test_zci(qr/^\d{1,2} \+ \d{1,2} \+ \d{1,2} \+ \d{1,2} = \d{1,2}$/),
+ "roll 2d6" => test_zci(qr/^\d (\+|-) \d = \d+$/),
+ "roll 3d12 + 4" => test_zci(qr/^\d{1,2} (\+|-) \d{1,2} (\+|-) \d{1,2} (\+|-) \d{1,2} = \d{1,2}$/),
"throw 1d20" => test_zci(qr/\d{1,2}$/),
- "roll 3d8 - 8" => test_zci(qr/^\d \+ \d \+ \d - \d = \d+$/),
+ "roll 3d8 - 8" => test_zci(qr/^\d (\+|-) \d (\+|-) \d (\+|-) \d = \d+$/),
"roll d20" => test_zci(qr/^\d{1,2}$/),
);

0 comments on commit df75004

Please sign in to comment.