changed tests to not fail if they receive multiple inputs -> this is NOT the right behaviour

This commit is contained in:
David Halter
2012-04-21 23:13:56 +02:00
parent 98a03d76fb
commit 909a6bfa2b
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,8 @@ def completion_test(source):
fails += 1
else:
# TODO remove sorted? completions should be sorted?
comp_str = str(sorted([str(c) for c in completions]))
# TODO remove set! duplicates should not be normal
comp_str = str(sorted(set([str(c) for c in completions])))
if comp_str != correct:
print 'Solution not correct, received %s, wanted %s' % \
(comp_str, correct)