annotate tests/test-hybridencode.py @ 33113:fc290a39590d

setup: replace runhg() with an hgcommand helper class Replace the runhg() function with an hgcommand helper class. hgcommand has as run() function similar to runhg(), but no longer requires the caller to pass in the exact path to python and the hg script, and the environment settings for invoking hg. For now this diff contains no behavior changes, but in the future this will make it easier for the hgcommand helper class to more intelligently figure out the proper way to invoke hg.
author Adam Simpkins <simpkins@fb.com>
date Tue, 27 Jun 2017 16:15:32 -0700
parents 2b0d7be90fc4
children 6574c81b6831
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
1 from __future__ import absolute_import, print_function
28749
2fa5c7c1df8c py3: use absolute_import in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 25027
diff changeset
2 from mercurial import (
2fa5c7c1df8c py3: use absolute_import in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 25027
diff changeset
3 store,
2fa5c7c1df8c py3: use absolute_import in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 25027
diff changeset
4 )
7275
c00cdac22d3c add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
5
c00cdac22d3c add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
6 def show(s):
17622
57bf86677daa test-hybridencode: use store._dothybridencode(s)
Adrian Buehlmann <adrian@cadifra.com>
parents: 17617
diff changeset
7 # show test input
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
8 print("A = '%s'" % s.encode("string_escape"))
17622
57bf86677daa test-hybridencode: use store._dothybridencode(s)
Adrian Buehlmann <adrian@cadifra.com>
parents: 17617
diff changeset
9
57bf86677daa test-hybridencode: use store._dothybridencode(s)
Adrian Buehlmann <adrian@cadifra.com>
parents: 17617
diff changeset
10 # show the result of the C implementation, if available
18435
8c019d2fd7c0 store: switch to C-based hashed path encoding
Bryan O'Sullivan <bryano@fb.com>
parents: 17690
diff changeset
11 h = store._pathencode(s)
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
12 print("B = '%s'" % h.encode("string_escape"))
17622
57bf86677daa test-hybridencode: use store._dothybridencode(s)
Adrian Buehlmann <adrian@cadifra.com>
parents: 17617
diff changeset
13
57bf86677daa test-hybridencode: use store._dothybridencode(s)
Adrian Buehlmann <adrian@cadifra.com>
parents: 17617
diff changeset
14 # compare it with reference implementation in Python
57bf86677daa test-hybridencode: use store._dothybridencode(s)
Adrian Buehlmann <adrian@cadifra.com>
parents: 17617
diff changeset
15 r = store._hybridencode(s, True)
57bf86677daa test-hybridencode: use store._dothybridencode(s)
Adrian Buehlmann <adrian@cadifra.com>
parents: 17617
diff changeset
16 if h != r:
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
17 print("R = '%s'" % r.encode("string_escape"))
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
18 print()
7275
c00cdac22d3c add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
19
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
20 show("data/abcdefghijklmnopqrstuvwxyz0123456789 !#%&'()+,-.;=[]^`{}")
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
21
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
22 print("uppercase char X is encoded as _x")
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
23 show("data/ABCDEFGHIJKLMNOPQRSTUVWXYZ")
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
24
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
25 print("underbar is doubled")
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
26 show("data/_")
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
27
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
28 print("tilde is character-encoded")
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
29 show("data/~")
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
30
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
31 print("characters in ASCII code range 1..31")
17444
d527ac9f011d test-hybridencode: remove x00 character case
Adrian Buehlmann <adrian@cadifra.com>
parents: 17440
diff changeset
32 show('data/\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f'
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
33 '\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
34
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
35 print("characters in ASCII code range 126..255")
17445
e5422a9ffe9d test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents: 17444
diff changeset
36 show('data/\x7e\x7f'
e5422a9ffe9d test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents: 17444
diff changeset
37 '\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f'
e5422a9ffe9d test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents: 17444
diff changeset
38 '\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f')
e5422a9ffe9d test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents: 17444
diff changeset
39 show('data/\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf'
e5422a9ffe9d test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents: 17444
diff changeset
40 '\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf')
e5422a9ffe9d test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents: 17444
diff changeset
41 show('data/\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf'
e5422a9ffe9d test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents: 17444
diff changeset
42 '\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf')
e5422a9ffe9d test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents: 17444
diff changeset
43 show('data/\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef'
e5422a9ffe9d test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents: 17444
diff changeset
44 '\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff')
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
45
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
46 print("Windows reserved characters")
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
47 show('data/less <, greater >, colon :, double-quote ", backslash \\'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
48 ', pipe |, question-mark ?, asterisk *')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
49
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
50 print("encoding directories ending in .hg, .i or .d with '.hg' suffix")
17593
9e31a72bede7 test-hybridencode: add a case for direncode
Adrian Buehlmann <adrian@cadifra.com>
parents: 17590
diff changeset
51 show('data/x.h.i/x.hg/x.i/x.d/foo')
17540
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
52 show('data/a.hg/a.i/a.d/foo')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
53 show('data/au.hg/au.i/au.d/foo')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
54 show('data/aux.hg/aux.i/aux.d/foo')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
55 show('data/auxy.hg/auxy.i/auxy.d/foo')
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
56
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
57 print("but these are not encoded on *filenames*")
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
58 show('data/foo/x.hg')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
59 show('data/foo/x.i')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
60 show('data/foo/x.d')
17540
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
61 show('data/foo/a.hg')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
62 show('data/foo/a.i')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
63 show('data/foo/a.d')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
64 show('data/foo/au.hg')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
65 show('data/foo/au.i')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
66 show('data/foo/au.d')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
67 show('data/foo/aux.hg')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
68 show('data/foo/aux.i')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
69 show('data/foo/aux.d')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
70 show('data/foo/auxy.hg')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
71 show('data/foo/auxy.i')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
72 show('data/foo/auxy.d')
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
73
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
74 print("plain .hg, .i and .d directories have the leading dot encoded")
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
75 show('data/.hg/.i/.d/foo')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
76
7275
c00cdac22d3c add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
77 show('data/aux.bla/bla.aux/prn/PRN/lpt/com3/nul/coma/foo.NUL/normal.c.i')
c00cdac22d3c add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
78
8659
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
79 show('data/AUX/SECOND/X.PRN/FOURTH/FI:FTH/SIXTH/SEVENTH/EIGHTH/NINETH/'
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
80 'TENTH/ELEVENTH/LOREMIPSUM.TXT.i')
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
81 show('data/enterprise/openesbaddons/contrib-imola/corba-bc/netbeansplugin/'
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
82 'wsdlExtension/src/main/java/META-INF/services/org.netbeans.modules'
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
83 '.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider.i')
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
84 show('data/AUX.THE-QUICK-BROWN-FOX-JU:MPS-OVER-THE-LAZY-DOG-THE-QUICK-'
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
85 'BROWN-FOX-JUMPS-OVER-THE-LAZY-DOG.TXT.i')
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
86 show('data/Project Planning/Resources/AnotherLongDirectoryName/'
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
87 'Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt')
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
88 show('data/Project.Planning/Resources/AnotherLongDirectoryName/'
1a6d702e059d test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents: 7515
diff changeset
89 'Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt')
12687
34d8247a4595 store: encode first period or space in filenames (issue1713)
Adrian Buehlmann <adrian@cadifra.com>
parents: 8659
diff changeset
90 show('data/foo.../foo / /a./_. /__/.x../ bla/.FOO/something.i')
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
91
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
92 show('data/c/co/com/com0/com1/com2/com3/com4/com5/com6/com7/com8/com9')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
93 show('data/C/CO/COM/COM0/COM1/COM2/COM3/COM4/COM5/COM6/COM7/COM8/COM9')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
94 show('data/c.x/co.x/com.x/com0.x/com1.x/com2.x/com3.x/com4.x/com5.x'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
95 '/com6.x/com7.x/com8.x/com9.x')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
96 show('data/x.c/x.co/x.com0/x.com1/x.com2/x.com3/x.com4/x.com5'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
97 '/x.com6/x.com7/x.com8/x.com9')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
98 show('data/cx/cox/comx/com0x/com1x/com2x/com3x/com4x/com5x'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
99 '/com6x/com7x/com8x/com9x')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
100 show('data/xc/xco/xcom0/xcom1/xcom2/xcom3/xcom4/xcom5'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
101 '/xcom6/xcom7/xcom8/xcom9')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
102
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
103 show('data/l/lp/lpt/lpt0/lpt1/lpt2/lpt3/lpt4/lpt5/lpt6/lpt7/lpt8/lpt9')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
104 show('data/L/LP/LPT/LPT0/LPT1/LPT2/LPT3/LPT4/LPT5/LPT6/LPT7/LPT8/LPT9')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
105 show('data/l.x/lp.x/lpt.x/lpt0.x/lpt1.x/lpt2.x/lpt3.x/lpt4.x/lpt5.x'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
106 '/lpt6.x/lpt7.x/lpt8.x/lpt9.x')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
107 show('data/x.l/x.lp/x.lpt/x.lpt0/x.lpt1/x.lpt2/x.lpt3/x.lpt4/x.lpt5'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
108 '/x.lpt6/x.lpt7/x.lpt8/x.lpt9')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
109 show('data/lx/lpx/lptx/lpt0x/lpt1x/lpt2x/lpt3x/lpt4x/lpt5x'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
110 '/lpt6x/lpt7x/lpt8x/lpt9x')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
111 show('data/xl/xlp/xlpt/xlpt0/xlpt1/xlpt2/xlpt3/xlpt4/xlpt5'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
112 '/xlpt6/xlpt7/xlpt8/xlpt9')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
113
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
114 show('data/con/p/pr/prn/a/au/aux/n/nu/nul')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
115 show('data/CON/P/PR/PRN/A/AU/AUX/N/NU/NUL')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
116 show('data/con.x/p.x/pr.x/prn.x/a.x/au.x/aux.x/n.x/nu.x/nul.x')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
117 show('data/x.con/x.p/x.pr/x.prn/x.a/x.au/x.aux/x.n/x.nu/x.nul')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
118 show('data/conx/px/prx/prnx/ax/aux/auxx/nx/nux/nulx')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
119 show('data/xcon/xp/xpr/xprn/xa/xau/xaux/xn/xnu/xnul')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
120
17540
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
121 show('data/a./au./aux./auxy./aux.')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
122 show('data/c./co./con./cony./con.')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
123 show('data/p./pr./prn./prny./prn.')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
124 show('data/n./nu./nul./nuly./nul.')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
125 show('data/l./lp./lpt./lpt1./lpt1y./lpt1.')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
126 show('data/lpt9./lpt9y./lpt9.')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
127 show('data/com./com1./com1y./com1.')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
128 show('data/com9./com9y./com9.')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
129
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
130 show('data/a /au /aux /auxy /aux ')
f2bcc5975f10 test-hybridencode: a few more cases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17459
diff changeset
131
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
132 print("largest unhashed path")
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
133 show('data/123456789-123456789-123456789-123456789-123456789-'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
134 'unhashed--xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
135 '123456789-12345')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
136
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
137 print("shortest hashed path")
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
138 show('data/123456789-123456789-123456789-123456789-123456789-'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
139 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
140 '123456789-123456')
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
141
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
142 print("changing one char in part that's hashed away produces a different hash")
17432
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
143 show('data/123456789-123456789-123456789-123456789-123456789-'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
144 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxy-'
61bd77b57c86 test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents: 17404
diff changeset
145 '123456789-123456')
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
146
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
147 print("uppercase hitting length limit due to encoding")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
148 show('data/A23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
149 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
150 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
151 show('data/Z23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
152 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
153 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
154
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
155 print("compare with lowercase not hitting limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
156 show('data/a23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
157 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
158 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
159 show('data/z23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
160 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
161 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
162
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
163 print("not hitting limit with any of these")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
164 show("data/abcdefghijklmnopqrstuvwxyz0123456789 !#%&'()+,-.;="
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
165 "[]^`{}xxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-"
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
166 "123456789-12345")
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
167
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
168 print("underbar hitting length limit due to encoding")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
169 show('data/_23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
170 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
171 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
172
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
173 print("tilde hitting length limit due to encoding")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
174 show('data/~23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
175 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
176 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
177
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
178 print("Windows reserved characters hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
179 show('data/<23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
180 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
181 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
182 show('data/>23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
183 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
184 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
185 show('data/:23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
186 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
187 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
188 show('data/"23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
189 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
190 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
191 show('data/\\23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
192 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
193 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
194 show('data/|23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
195 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
196 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
197 show('data/?23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
198 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
199 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
200 show('data/*23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
201 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
202 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
203
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
204 print("initial space hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
205 show('data/ 23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
206 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
207 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
208
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
209 print("initial dot hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
210 show('data/.23456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
211 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
212 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
213
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
214 print("trailing space in filename hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
215 show('data/123456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
216 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
217 '123456789-1234 ')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
218
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
219 print("trailing dot in filename hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
220 show('data/123456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
221 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
222 '123456789-1234.')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
223
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
224 print("initial space in directory hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
225 show('data/ x/456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
226 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
227 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
228
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
229 print("initial dot in directory hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
230 show('data/.x/456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
231 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
232 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
233
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
234 print("trailing space in directory hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
235 show('data/x /456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
236 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
237 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
238
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
239 print("trailing dot in directory hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
240 show('data/x./456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
241 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
242 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
243
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
244 print("with directories that need direncoding, hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
245 show('data/x.i/56789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
246 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
247 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
248 show('data/x.d/56789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
249 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
250 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
251 show('data/x.hg/5789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
252 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
253 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
254
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
255 print("Windows reserved filenames, hitting length limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
256 show('data/con/56789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
257 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
258 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
259 show('data/prn/56789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
260 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
261 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
262 show('data/aux/56789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
263 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
264 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
265 show('data/nul/56789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
266 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
267 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
268 show('data/com1/6789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
269 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
270 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
271 show('data/com9/6789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
272 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
273 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
274 show('data/lpt1/6789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
275 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
276 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
277 show('data/lpt9/6789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
278 'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
279 '123456789-12345')
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
280
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
281 print("non-reserved names, just not hitting limit")
17440
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
282 show('data/123456789-123456789-123456789-123456789-123456789-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
283 '/com/com0/lpt/lpt0/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
5be041254a2e test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17432
diff changeset
284 '123456789-12345')
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
285
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
286 print("hashed path with largest untruncated 1st dir")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
287 show('data/12345678/-123456789-123456789-123456789-123456789-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
288 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
289 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
290
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
291 print("hashed path with smallest truncated 1st dir")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
292 show('data/123456789/123456789-123456789-123456789-123456789-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
293 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
294 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
295
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
296 print("hashed path with largest untruncated two dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
297 show('data/12345678/12345678/9-123456789-123456789-123456789-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
298 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
299 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
300
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
301 print("hashed path with smallest truncated two dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
302 show('data/123456789/123456789/123456789-123456789-123456789-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
303 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
304 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
305
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
306 print("hashed path with largest untruncated three dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
307 show('data/12345678/12345678/12345678/89-123456789-123456789-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
308 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
309 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
310
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
311 print("hashed path with smallest truncated three dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
312 show('data/123456789/123456789/123456789/123456789-123456789-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
313 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
314 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
315
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
316 print("hashed path with largest untruncated four dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
317 show('data/12345678/12345678/12345678/12345678/789-123456789-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
318 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
319 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
320
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
321 print("hashed path with smallest truncated four dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
322 show('data/123456789/123456789/123456789/123456789/123456789-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
323 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
324 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
325
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
326 print("hashed path with largest untruncated five dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
327 show('data/12345678/12345678/12345678/12345678/12345678/6789-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
328 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
329 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
330
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
331 print("hashed path with smallest truncated five dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
332 show('data/123456789/123456789/123456789/123456789/123456789/'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
333 'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
334 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
335
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
336 print("hashed path with largest untruncated six dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
337 show('data/12345678/12345678/12345678/12345678/12345678/12345'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
338 '678/ed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
339 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
340
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
341 print("hashed path with smallest truncated six dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
342 show('data/123456789/123456789/123456789/123456789/123456789/'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
343 '123456789/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
344 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
345
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
346 print("hashed path with largest untruncated seven dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
347 show('data/12345678/12345678/12345678/12345678/12345678/12345'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
348 '678/12345678/xxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
349 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
350
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
351 print("hashed path with smallest truncated seven dirs")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
352 show('data/123456789/123456789/123456789/123456789/123456789/'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
353 '123456789/123456789/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
354 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
355
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
356 print("hashed path with largest untruncated eight dirs")
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
357 print("(directory 8 is dropped because it hits _maxshortdirslen)")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
358 show('data/12345678/12345678/12345678/12345678/12345678/12345'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
359 '678/12345678/12345678/xxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
360 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
361
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
362 print("hashed path with smallest truncated eight dirs")
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
363 print("(directory 8 is dropped because it hits _maxshortdirslen)")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
364 show('data/123456789/123456789/123456789/123456789/123456789/'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
365 '123456789/123456789/123456789/xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
366 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
367
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
368 print("hashed path with largest non-dropped directory 8")
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
369 print("(just not hitting the _maxshortdirslen boundary)")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
370 show('data/12345678/12345678/12345678/12345678/12345678/12345'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
371 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
372 '123456789-123456')
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
373
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
374 print("...adding one truncated char to dir 1..7 won't drop dir 8")
17453
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
375 show('data/12345678x/12345678/12345678/12345678/12345678/12345'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
376 '678/12345678/12345/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
377 '123456789-123456')
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
378 show('data/12345678/12345678x/12345678/12345678/12345678/12345'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
379 '678/12345678/12345/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
380 '123456789-123456')
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
381 show('data/12345678/12345678/12345678x/12345678/12345678/12345'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
382 '678/12345678/12345/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
383 '123456789-123456')
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
384 show('data/12345678/12345678/12345678/12345678x/12345678/12345'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
385 '678/12345678/12345/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
386 '123456789-123456')
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
387 show('data/12345678/12345678/12345678/12345678/12345678x/12345'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
388 '678/12345678/12345/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
389 '123456789-123456')
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
390 show('data/12345678/12345678/12345678/12345678/12345678/12345'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
391 '678x/12345678/12345/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
392 '123456789-123456')
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
393 show('data/12345678/12345678/12345678/12345678/12345678/12345'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
394 '678/12345678x/12345/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
395 '123456789-123456')
97899a01d3e5 test-hybridencode: adding one truncated char to dir 1..7 won't drop dir 8
Adrian Buehlmann <adrian@cadifra.com>
parents: 17452
diff changeset
396
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
397 print("hashed path with shortest dropped directory 8")
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
398 print("(just hitting the _maxshortdirslen boundary)")
17452
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
399 show('data/12345678/12345678/12345678/12345678/12345678/12345'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
400 '678/12345678/123456/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
4aec89d4faa2 test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17445
diff changeset
401 '123456789-123456')
17457
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
402
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
403 print("hashed path that drops dir 8 due to dot or space at end is")
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
404 print("encoded, and thus causing to hit _maxshortdirslen")
17457
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
405 show('data/12345678/12345678/12345678/12345678/12345678/12345'
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
406 '678/12345678/1234./-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
407 '123456789-123456')
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
408 show('data/12345678/12345678/12345678/12345678/12345678/12345'
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
409 '678/12345678/1234 /-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
410 '123456789-123456')
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
411
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
412 print("... with dir 8 short enough for encoding")
17457
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
413 show('data/12345678/12345678/12345678/12345678/12345678/12345'
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
414 '678/12345678/12./xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
415 '123456789-123456')
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
416 show('data/12345678/12345678/12345678/12345678/12345678/12345'
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
417 '678/12345678/12 /xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
467e487f393f test-hybridencode: dropping dir eight in hashed path due to dot or space at end
Adrian Buehlmann <adrian@cadifra.com>
parents: 17453
diff changeset
418 '123456789-123456')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
419
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
420 print('''Extensions are replicated on hashed paths. Note that
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
421 we only get to encode files that end in .i or .d inside the
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
422 store. Encoded filenames are thus bound in length.''')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
423 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
424 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
425 '123456789-12.345.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
426 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
427 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
428 '123456789-12.345.d')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
429 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
430 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
431 '123456789-12.3456.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
432 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
433 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
434 '123456789-12.34567.i')
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
435 show('data/12345678/12345678/12345678/12345678/12345678/12345'
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
436 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
437 '123456789-12.345678.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
438 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
439 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
440 '123456789-12.3456789.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
441 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
442 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
443 '123456789-12.3456789-.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
444 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
445 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
446 '123456789-12.3456789-1.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
447 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
448 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
449 '123456789-12.3456789-12.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
450 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
451 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
452 '123456789-12.3456789-123.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
453 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
454 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
455 '123456789-12.3456789-1234.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
456 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
457 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
458 '123456789-12.3456789-12345.i')
17459
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
459 show('data/12345678/12345678/12345678/12345678/12345678/12345'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
460 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
461 '123456789-12.3456789-12345-ABCDEFGHIJKLMNOPRSTUVWX'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
462 'YZ-abcdefghjiklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPRSTU'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
463 'VWXYZ-1234567890-xxxxxxxxx-xxxxxxxxx-xxxxxxxx-xxxx'
f4d15f3b96c0 test-hybridencode: extensions are replicated on hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents: 17457
diff changeset
464 'xxxxx-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwww'
17690
eb7f8359249a test-hybridencode: in practice, extensions aren't really unbound in length
Adrian Buehlmann <adrian@cadifra.com>
parents: 17622
diff changeset
465 'wwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww.i')
25027
297ea0df75d0 pathencode: for long paths, strip first 5 chars, not first dir
Martin von Zweigbergk <martinvonz@google.com>
parents: 18435
diff changeset
466
28750
2b0d7be90fc4 py3: use print_function in test-hybridencode.py
Robert Stanca <robert.stanca7@gmail.com>
parents: 28749
diff changeset
467 print("paths outside data/ can be encoded")
25027
297ea0df75d0 pathencode: for long paths, strip first 5 chars, not first dir
Martin von Zweigbergk <martinvonz@google.com>
parents: 18435
diff changeset
468 show('metadata/dir/00manifest.i')
297ea0df75d0 pathencode: for long paths, strip first 5 chars, not first dir
Martin von Zweigbergk <martinvonz@google.com>
parents: 18435
diff changeset
469 show('metadata/12345678/12345678/12345678/12345678/12345678/'
297ea0df75d0 pathencode: for long paths, strip first 5 chars, not first dir
Martin von Zweigbergk <martinvonz@google.com>
parents: 18435
diff changeset
470 '12345678/12345678/12345678/12345678/12345678/12345678/'
297ea0df75d0 pathencode: for long paths, strip first 5 chars, not first dir
Martin von Zweigbergk <martinvonz@google.com>
parents: 18435
diff changeset
471 '12345678/12345678/00manifest.i')