128
  .   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ã‚p _‘I|¥‰ÓMdœv ©ƒ†ü+=ÃÂ b    ‹      Õ–]oÚ0†ïû+<_ì¡”©mðÔ¤¡Q@-Ó4MSebC¬&vdýõspÚfhtj+zuŽ“7>ïãø+|�º“ïãú<¹ ñ×Oƒ~áÀ·ã.@4‰ü‹V½ ô†áÄÚü`µZÕWÇu¥ç0¹‚ÄfiŒÕ"¶uf&GañŒ¡0á”¹ˆB+lÊI_2þ©µ°F0Þ‚\«l¢�°fx:­”³6ÀøRÄÜ¹åd<Sz]†6HÅx£l­f¾‚«	eÑpªØºð¼h]×ý�N7å‹T“Ð&hIS1—lUŽI(²92:î`±’¦)•·õ¹˜aDSÛÁ?úÝÑO§sžŠ¯IH‘37ëà�ÝÎð|Ô‰0ÒŒ‡@·k.�æ“5eŠ‰™àl§øÚ‹¯ÅÝî#¯‰¸‰µÈ­PòQ
±Š«ÔäÔ±ž8‚DWU^Âþ54þc0ÆW½á$ê_ù!aE�îžë/b2¦šK‹"¡ylÝ›Ñ×{/§&?¿o¢@‹yb1A¨†¶*Ÿ@=S)ãºÊ½‹øÞ¯�U—Ùj6šíZÔ‚S|8k´zAÿy+ÕJVÜ¤Ø
 d*$ÇÄÇ= šMÔ89‚� n[úòŠ y²67~RaRi¼UQl‰%É&?�ýE®V\»EáãsøåE¡Ýn´,ÎLÒCùOÀ0–Z‡°	‡bÿYdÓòŒpùÜb|éÎ2L||€WžGEGìæNIn0©4öžS�ÓÿDÙó*å%/„ÍÕ2Íýs‘I    C   ˆl–Ü4ý(TÐ;ÍÆ\¸TÅ£�þZvHÖn9Œ/‚F\ ?ŸÆ„Ì¾ßÅ_ŠI|¥�+Wé3ž¯ÅÄ ?÷     # Copyright (C) 2005-2011, 2016 Canonical Ltd
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

import merge3
import unittest
import sys

if sys.version_info[0] == 3:
    import struct
    int2byte = struct.Struct(">B").pack
    from io import StringIO
else:
    int2byte = chr
    from StringIO import StringIO


def split_lines(t):
    return StringIO(t).readlines()


############################################################
# test case data from the gnu diffutils manual
# common base
TZU = split_lines("""     The Nameless is the origin of Heaven and Earth;
     The named is the mother of all things.

     Therefore let there always be non-being,
       so we may see their subtlety,
     And let there always be being,
       so we may see their outcome.
     The two are the same,
     But after they are produced,
       they have different names.
     They both may be called deep and profound.
     Deeper and more profound,
     The door of all subtleties!
""")

LAO = split_lines("""     The Way that can be told of is not the eternal Way;
     The name that can be named is not the eternal name.
     The Nameless is the origin of Heaven and Earth;
     The Named is the mother of all things.
     Therefore let there always be non-being,
       so we may see their subtlety,
     And let there always be being,
       so we may see their outcome.
     The two are the same,
     But after they are produced,
       they have different names.
""")


TAO = split_lines("""     The Way that can be told of is not the eternal Way;
     The name that can be named is not the eternal name.
     The Nameless is the origin of Heaven and Earth;
     The named is the mother of all things.

     Therefore let there always be non-being,
       so we may see their subtlety,
     And let there always be being,
       so we may see their result.
     The two are the same,
     But after they are produced,
       they have different names.

       -- The Way of Lao-Tzu, tr. Wing-tsit Chan

""")

MERGED_RESULT = split_lines("""     The Way that can be told of is not the eternal Way;
     The name that can be named is not the eternal name.
     The Nameless is the origin of Heaven and Earth;
     The Named is the mother of all things.
     Therefore let there always be non-being,
       so we may see their subtlety,
     And let there always be being,
       so we may see their result.
     The two are the same,
     But after they are produced,
       they have different names.
<<<<<<< LAO
=======

       -- The Way of Lao-Tzu, tr. Wing-tsit Chan

>>>>>>> TAO
""")


class TestMerge3(unittest.TestCase):

    def test_no_changes(self):
        """No confl