|
@@ -51,10 +51,14 @@ class FortuneTestType(FrameworkTestType):
|
|
current_neg.append(line[1:])
|
|
current_neg.append(line[1:])
|
|
elif line[0] == '-':
|
|
elif line[0] == '-':
|
|
current_pos.append(line[1:])
|
|
current_pos.append(line[1:])
|
|
- elif line[0] == '@' or line == diff[:-1]:
|
|
|
|
|
|
+ elif line[0] == '@':
|
|
failures.append( ('fail',
|
|
failures.append( ('fail',
|
|
"`%s` should be `%s`" % (''.join(current_neg), ''.join(current_pos)),
|
|
"`%s` should be `%s`" % (''.join(current_neg), ''.join(current_pos)),
|
|
url) )
|
|
url) )
|
|
|
|
+ if len(current_pos) != 0:
|
|
|
|
+ failures.append( ('fail',
|
|
|
|
+ "`%s` should be `%s`" % (''.join(current_neg), ''.join(current_pos)),
|
|
|
|
+ url) )
|
|
except:
|
|
except:
|
|
pass
|
|
pass
|
|
return failures
|
|
return failures
|