Commit 55fbdf08 authored by Vladislav Perepelkin's avatar Vladislav Perepelkin
Browse files

added states uniquity check

parent cb62331a
......@@ -77,6 +77,8 @@ i=0
while i<len(lines):
line=lines[i].strip()
states=extract_words(line)
if len(set(states)) != len(states):
error("Duplicate state(s) in line: " + line)
for word in states:
validate_state(word, line)
if i+len(states) >= len(lines):
......
Markdown is supported
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