aboutsummaryrefslogtreecommitdiff
path: root/tests/errors
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors')
-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 0f39228..6472469 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,
+ MustBeAtLeastOneLiteralError,
MustBeAtLeastTwoOperandsError,
MustBeInstanceError,
MustBeIntegerGreaterThanZeroError,
@@ -113,6 +114,11 @@ def test_must_be_at_least_two_operands():
assert "any_of requires at least two operands" in str(error)
+def test_must_be_at_least_one_literal():
+ error = MustBeAtLeastOneLiteralError("one_of")
+ assert "one_of requires at least one literal" in str(error)
+
+
def test_name_not_valid():
error = NameNotValidError("bad name")
assert "Name bad name is not valid" in str(error)