fix(tests): fix testing script bug and formatting

This commit is contained in:
Kevin K 2015-03-26 14:48:14 -04:00
parent 3834433c20
commit d8f03a55c4

View file

@ -89,16 +89,16 @@ def pass_fail(name, check, good):
print('Pass') print('Pass')
return return
failed = True failed = True
print('Fail') print('Fail\n\tShould be: {}\n\tBut is: {}'.format(good, check))
return return
_failed = False _failed = False
for i, line in enumerate(check): for i, line in enumerate(check):
if line == good[i]: if line == good[i]:
continue continue
_failed = True _failed = True
print('Fail\n\tShould be: {}\n\tBut is: {}'.format(good[i], line))
if _failed: if _failed:
failed = True failed = True
print('Fail')
return return
print('Pass') print('Pass')