diff options
| author | natsuoto <[email protected]> | 2026-07-01 16:11:09 +0530 |
|---|---|---|
| committer | natsuoto <[email protected]> | 2026-07-01 16:11:09 +0530 |
| commit | 341cf4fe45bb56677f0b42e287738999fb8a1ac5 (patch) | |
| tree | 5f1544aed63e707d5fb2aeeb87b6e7e0dc98f5cd /tests/builder/validation.test.py | |
| parent | a757473f3551426948069a1a25ef6657a572d759 (diff) | |
| download | edify-341cf4fe45bb56677f0b42e287738999fb8a1ac5.tar.xz edify-341cf4fe45bb56677f0b42e287738999fb8a1ac5.zip | |
feat: .at_most(n) quantifier closes the symmetry gap with at_least/exactly/between
Diffstat (limited to 'tests/builder/validation.test.py')
| -rw-r--r-- | tests/builder/validation.test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/builder/validation.test.py b/tests/builder/validation.test.py index e4898ad..53128c5 100644 --- a/tests/builder/validation.test.py +++ b/tests/builder/validation.test.py @@ -109,6 +109,11 @@ def test_at_least_non_positive_raises(): RegexBuilder().at_least(-1).digit() +def test_at_most_non_positive_raises(): + with pytest.raises(MustBePositiveIntegerError): + RegexBuilder().at_most(0).digit() + + def test_between_negative_lower_raises(): with pytest.raises(MustBeIntegerGreaterThanZeroError): RegexBuilder().between(-1, 5).digit() |
