Skip to content

Commit

Permalink
UX: Shorter action message for invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
thorehusfeldt authored and RagnarGrootKoerkamp committed Feb 10, 2024
1 parent f5757ac commit 3496c58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,9 @@ def validate_data(problem, mode: validate.Mode, constraints: dict | bool | None

if len(testcases) == 0:
return True
# TODO Why?

action = (
"(In)validating invalid testcases"
"Invalidation"
if mode == validate.Mode.INVALID
else (
f"{mode} validation" if not check_constraints else f"Collecting {mode} constraints"
Expand Down

0 comments on commit 3496c58

Please sign in to comment.