added ordering tests

This commit is contained in:
David Halter
2012-05-02 17:10:31 +02:00
parent 29f05aad8f
commit 1340ccb33d
5 changed files with 119 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ def completion_test(source):
completions = functions.complete(source, line_nr, 999,
completion_test_dir)
except:
print 'test @#%s: %s' % (line_nr-1, line)
print 'test @%s: %s' % (line_nr-1, line)
print traceback.format_exc()
fails += 1
else:
@@ -43,7 +43,7 @@ def completion_test(source):
# 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 on @#%s not right, received %s, wanted %s'\
print 'Solution @%s not right, received %s, wanted %s'\
% (line_nr - 1, comp_str, correct)
#print [(c.name, c.name.parent) for c in completions]
fails += 1