fix(dice): parse_dice validates sides >= _MIN_SIDES so d1/1d1 raise DiceParseError instead of leaking the model validator's pydantic ValidationError; drop the dead not-sides_str guard (regex \\d+ already guarantees non-empty) + 3 rejected-notation cases (d1, 1d1, 2D6)
This commit is contained in:
@@ -88,6 +88,9 @@ class TestParseDiceRejected:
|
||||
"d",
|
||||
"2d0",
|
||||
"0d6",
|
||||
"d1",
|
||||
"1d1",
|
||||
"2D6",
|
||||
"2d 6",
|
||||
"abc",
|
||||
"d6+",
|
||||
|
||||
Reference in New Issue
Block a user