Ejemplo n.º 1
0
def test_sort_of_string(output=True):
    config = Config()
    config.debug_delay = False
    config.str_display_not_prefix_u = False
    config.str_display_not_prefix_b = False
    for sstr in sort_of_string:
        ints = ''
        for e in sstr:
            try:
                ints += '%d ' % ord(e)
            except:
                ints += '%d ' % e
        print('%40s %s %s' % (ints, repr(sstr), len(sstr)))
    return pp(sort_of_string, output, config=config)
Ejemplo n.º 2
0
def test_sort_of_string(output=True):
    config = Config()
    config.debug_delay = False
    config.str_display_not_prefix_u = False
    config.str_display_not_prefix_b = False
    for sstr in sort_of_string:
        ints = ''
        for e in sstr:
            try:
                ints += '%d ' % ord(e)
            except:
                ints += '%d ' % e
        print('%40s %s %s' % (ints, repr(sstr), len(sstr)))
    return pp(sort_of_string, output, config=config)