get_related_names testing

This commit is contained in:
David Halter
2012-09-10 00:52:01 +02:00
parent 47262ea45e
commit da3c327af7
6 changed files with 69 additions and 10 deletions

View File

@@ -135,7 +135,7 @@ def run_related_name_test(correct, source, line_nr, index, line, path):
print('test @%s: %s' % (line_nr - 1, line))
return 1
else:
comp_str = set(r.description for r in result)
comp_str = set('(%s,%s)' % r.start_pos for r in result)
correct = set(correct.strip().split(' '))
if comp_str != correct:
print('Solution @%s not right, received %s, wanted %s'\