From a7974d090211955c394e0fecbc547f73b7786a97 Mon Sep 17 00:00:00 2001 From: natsuoto <279971144+natsuoto@users.noreply.github.com> Date: Wed, 1 Jul 2026 15:36:40 +0530 Subject: =?UTF-8?q?feat:=20humre-style=20functional=20API=20=E2=80=94=20op?= =?UTF-8?q?erators,=20constants,=20factories,=20matcher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/errors/errors.test.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/errors') 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) -- cgit v1.2.3