changeset 21:6408a3f67d25

Got verification the part 1 plaintext had a typo. We now pass!
author Brian Neal <bgneal@gmail.com>
date Sun, 16 Feb 2014 14:30:57 -0600
parents 37eab2f88dcc
children 9c90ca37c023
files purple/tests/test_machine.py
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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: