Skip to content

Commit 6d511c6

Browse files
authored
add generic test for arbitrary expressions
1 parent fb92a2c commit 6d511c6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/pypi/pep508/evaluate_tests.bzl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,18 @@ def _evaluate_with_aliases(env):
265265

266266
_tests.append(_evaluate_with_aliases)
267267

268+
def _expr_case(expr, want, env):
269+
return struct(expr=expr, want=want, env=env)
270+
271+
_MISC_EXPRESSIONS = [
272+
]
273+
274+
def _misc_expressions(env):
275+
for case in _MISC_EXPRESSIONS:
276+
_check_evaluation(env, case.expr, case.want, case.env)
277+
278+
_tests.append(_misc_expressions)
279+
268280
def evaluate_test_suite(name): # buildifier: disable=function-docstring
269281
test_suite(
270282
name = name,

0 commit comments

Comments
 (0)