aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/errors.test.py
diff options
context:
space:
mode:
authornatsuoto <[email protected]>2026-07-01 15:36:40 +0530
committernatsuoto <[email protected]>2026-07-01 15:36:40 +0530
commita7974d090211955c394e0fecbc547f73b7786a97 (patch)
tree890106bf873d10604d5d141444519a039441bd14 /tests/errors/errors.test.py
parentd46c40de921dd2ba62fbfcd0e2e4591eee8de2a9 (diff)
downloadedify-a7974d090211955c394e0fecbc547f73b7786a97.tar.xz
edify-a7974d090211955c394e0fecbc547f73b7786a97.zip
feat: humre-style functional API — operators, constants, factories, matcher
Diffstat (limited to 'tests/errors/errors.test.py')
-rw-r--r--tests/errors/errors.test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/errors/errors.test.py b/tests/errors/errors.test.py
index 12cfcd5..0f39228 100644
--- a/tests/errors/errors.test.py
+++ b/tests/errors/errors.test.py
@@ -6,6 +6,7 @@ from edify.errors.anchors import (
from edify.errors.captures import InvalidTotalCaptureGroupsIndexError
from edify.errors.input import (
MustBeAStringError,
+ MustBeAtLeastTwoOperandsError,
MustBeInstanceError,
MustBeIntegerGreaterThanZeroError,
MustBeLessThanError,
@@ -107,6 +108,11 @@ def test_must_be_less_than():
assert "X must be less than Y" in str(error)
+def test_must_be_at_least_two_operands():
+ error = MustBeAtLeastTwoOperandsError("any_of")
+ assert "any_of requires at least two operands" in str(error)
+
+
def test_name_not_valid():
error = NameNotValidError("bad name")
assert "Name bad name is not valid" in str(error)