Commit d008f682 authored by Vladimír Štill's avatar Vladimír Štill
Browse files

checker: Don't canonise too eagerly

parent 96271653
......@@ -79,6 +79,7 @@ def check_task(automaton: Union[reg.DFA, reg.NFA], task: str) -> str:
if task == "MIN" and not automaton.is_minimal():
output = "DFA není minimální."
if task in {"CAN", "TOC", "MIC"}:
canonical = automaton.is_canonical()
if task == "CAN" and not canonical:
output = "DFA není kanonický."
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment