I get the correct result however not the accurate text output. For test08 for instance, in the encrypted text the first character is '/', if we imply a 'L' on it it becomes '.' which my program is doing. But the output file contains a 'T'. Similar problems occur in other tests too.
Can someone explain what's the issue?
test_01.py=85= in test_data return self.do_test(test, tile_size, expected) expected = ['LFN', 'RLL'] self = test = 8 tile_size = 220 test_01.py=42= in do_test self.check_text_file(plain_file, out_file) enc_file = 'tests/test08_enc.txt' expected = ['LFN', 'RLL'] folder = 'tests' out_file = 'output/tests_08_out.txt' plain_file = 'tests/test08_plain.txt' plain_image = 'tests/test08_exp.png' program = puzzle_image = 'tests/test08_in.png' result = ['LFN', 'RLL'] self = test = 8 tile_size = 220 testlib.py=238= in check_text_file self.assertEqual(lines_a, lines_b, msg) E AssertionError= Lists differ= ['The Quine–Putnam indispensability argumen[922 chars]ce.'] != ['.he Quine–Putnam indispensability argumen[922 chars]ceT'] E E First differing element 0= E 'The Quine–Putnam indispensability argument reasons that we should believe in' E '.he Quine–Putnam indispensability argument reasons that we should believe in'