# HG changeset patch # User Brian Neal # Date 1392582657 21600 # Node ID 6408a3f67d25a60abff3be28bae3eb3fbb75070d # Parent 37eab2f88dcc2e64fe3cf864160a899b52961d98 Got verification the part 1 plaintext had a typo. We now pass! diff -r 37eab2f88dcc -r 6408a3f67d25 purple/tests/test_machine.py --- a/purple/tests/test_machine.py Wed Feb 12 20:51:25 2014 -0600 +++ b/purple/tests/test_machine.py Sun Feb 16 14:30:57 2014 -0600 @@ -45,7 +45,7 @@ EDSTATESREGARDINGTHEADJUSTMENTANDADVANCEMENTOFJAPA NIHXFXFXGPDZBSKAZABYEKYEPNIYSHVKFRFPVCJTPTOYCNEIQB -NESEVVDAMERICANRELATIONSANDTHESTABILIZATIONOFTHEPA +NESEVVFAMERICANRELATIONSANDTHESTABILIZATIONOFTHEPA FEXMERMIZLGDRXZORLZFSQYPZFATZCHUGRNHWDDTAIHYOOCOOD CIFICAREACFCCCFTHEJAPANESEQOVERNMENXHASTHEHONORTOS @@ -93,11 +93,9 @@ ONCL-----HETRIPAITI--------THGERM-----DYTALYC---OV """ -# For debugging with other simulators. Just import this module and print these -# out or whatever...: -_lines = part1.split() -PT1_CT = ''.join(_lines[0::2]) -PT1_PT = ''.join(_lines[1::2]) +pt1_lines = part1.split() +PT1_CT = ''.join(pt1_lines[0::2]) +PT1_PT = ''.join(pt1_lines[1::2]) class Purple97TestCase(unittest.TestCase): @@ -200,7 +198,7 @@ mismatches = [] for n, (a, b) in enumerate(zip(plaintext, actual)): if a != b: - mismatches.append((n, a, b, plaintext[n:n+10], actual[n:n+10])) + mismatches.append((n, a, b)) msg = None if mismatches: