'Test handling of syntax splitting of ;'

def testSyntaxSplitSemicolon(self):

    for delimiter in (';', ';;', ';&', ';;&'):
        src = [('echo    hi    %s    echo    bye' % delimiter), ('echo    hi%s    echo    bye' % delimiter), ('echo    hi%secho    bye' % delimiter)]
        ref = ['echo', 'hi', delimiter, 'echo', 'bye']
        for ss in src:
            s = shlex.shlex(ss, punctuation_chars=True)
            result = list(s)
            self.assertEqual(ref, result, ("While    splitting    '%s'" % ss))
