change runlen example bug and test

This commit is contained in:
Alex Groce
2018-12-31 14:39:10 -07:00
parent 40eb4b0117
commit cd7f6daaf9
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -10,9 +10,9 @@ class RunlenTest(deepstate_base.DeepStateTestCase):
self.assertEqual(r, 0)
self.assertTrue("Passed: Runlength_EncodeDecode" in output)
foundCrashSave = False
foundFailSave = False
for line in output.split("\n"):
if ("Saving input to" in line) and (".crash" in line):
foundCrashSave = True
self.assertTrue(foundCrashSave)
if ("Saving input to" in line) and (".fail" in line):
foundFailSave = True
self.assertTrue(foundFailSave)