Point out which codes are too close
This commit is contained in:
parent
e2b711c3a6
commit
9aa42e5ffb
|
@ -40,6 +40,11 @@ def _load_codes():
|
||||||
errored_codes = {}
|
errored_codes = {}
|
||||||
for code in correct_codes:
|
for code in correct_codes:
|
||||||
for error in list_errors(code):
|
for error in list_errors(code):
|
||||||
|
if error in errored_codes:
|
||||||
|
raise ValueError("%s too close to %s" % (
|
||||||
|
code,
|
||||||
|
errored_codes[error],
|
||||||
|
))
|
||||||
errored_codes[error] = code
|
errored_codes[error] = code
|
||||||
assert (
|
assert (
|
||||||
len(errored_codes)
|
len(errored_codes)
|
||||||
|
|
Loading…
Reference in New Issue