author | Adrian Buehlmann <adrian@cadifra.com> |
Thu, 06 Sep 2012 15:04:07 +0200 | |
changeset 17452 | 4aec89d4faa2 |
parent 17445 | e5422a9ffe9d |
child 17453 | 97899a01d3e5 |
permissions | -rw-r--r-- |
7275
c00cdac22d3c
add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
1 |
from mercurial import store |
c00cdac22d3c
add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
2 |
|
12687
34d8247a4595
store: encode first period or space in filenames (issue1713)
Adrian Buehlmann <adrian@cadifra.com>
parents:
8659
diff
changeset
|
3 |
auxencode = lambda f: store._auxencode(f, True) |
34d8247a4595
store: encode first period or space in filenames (issue1713)
Adrian Buehlmann <adrian@cadifra.com>
parents:
8659
diff
changeset
|
4 |
hybridencode = lambda f: store._hybridencode(f, auxencode) |
34d8247a4595
store: encode first period or space in filenames (issue1713)
Adrian Buehlmann <adrian@cadifra.com>
parents:
8659
diff
changeset
|
5 |
|
34d8247a4595
store: encode first period or space in filenames (issue1713)
Adrian Buehlmann <adrian@cadifra.com>
parents:
8659
diff
changeset
|
6 |
enc = hybridencode # used for 'dotencode' repo format |
7275
c00cdac22d3c
add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
7 |
|
c00cdac22d3c
add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
8 |
def show(s): |
17432
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
9 |
print "A = '%s'" % s.encode("string_escape") |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
10 |
print "B = '%s'" % enc(s).encode("string_escape") |
7275
c00cdac22d3c
add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
11 |
|
c00cdac22d3c
add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
12 |
|
17432
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
13 |
show("data/abcdefghijklmnopqrstuvwxyz0123456789 !#%&'()+,-.;=[]^`{}") |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
14 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
15 |
print "uppercase char X is encoded as _x" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
16 |
show("data/ABCDEFGHIJKLMNOPQRSTUVWXYZ") |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
17 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
18 |
print "underbar is doubled" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
19 |
show("data/_") |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
20 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
21 |
print "tilde is character-encoded" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
22 |
show("data/~") |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
23 |
|
17444
d527ac9f011d
test-hybridencode: remove x00 character case
Adrian Buehlmann <adrian@cadifra.com>
parents:
17440
diff
changeset
|
24 |
print "characters in ASCII code range 1..31" |
d527ac9f011d
test-hybridencode: remove x00 character case
Adrian Buehlmann <adrian@cadifra.com>
parents:
17440
diff
changeset
|
25 |
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
|
26 |
'\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
|
27 |
|
17445
e5422a9ffe9d
test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents:
17444
diff
changeset
|
28 |
print "characters in ASCII code range 126..255" |
e5422a9ffe9d
test-hybridencode: test full range of ASCII codes from 126 to 255
Adrian Buehlmann <adrian@cadifra.com>
parents:
17444
diff
changeset
|
29 |
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
|
30 |
'\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
|
31 |
'\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
|
32 |
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
|
33 |
'\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
|
34 |
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
|
35 |
'\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
|
36 |
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
|
37 |
'\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
|
38 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
39 |
print "Windows reserved characters" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
40 |
show('data/less <, greater >, colon :, double-quote ", backslash \\' |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
41 |
', pipe |, question-mark ?, asterisk *') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
42 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
43 |
print "encoding directories ending in .hg, .i or .d with '.hg' suffix" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
44 |
show('data/x.hg/x.i/x.d/foo') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
45 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
46 |
print "but these are not encoded on *filenames*" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
47 |
show('data/foo/x.hg') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
48 |
show('data/foo/x.i') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
49 |
show('data/foo/x.d') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
50 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
51 |
print "plain .hg, .i and .d directories have the leading dot encoded" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
52 |
show('data/.hg/.i/.d/foo') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
53 |
|
7275
c00cdac22d3c
add new test-hybridencode.py
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
54 |
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
|
55 |
|
8659
1a6d702e059d
test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents:
7515
diff
changeset
|
56 |
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
|
57 |
'TENTH/ELEVENTH/LOREMIPSUM.TXT.i') |
1a6d702e059d
test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents:
7515
diff
changeset
|
58 |
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
|
59 |
'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
|
60 |
'.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider.i') |
1a6d702e059d
test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents:
7515
diff
changeset
|
61 |
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
|
62 |
'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
|
63 |
show('data/Project Planning/Resources/AnotherLongDirectoryName/' |
1a6d702e059d
test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents:
7515
diff
changeset
|
64 |
'Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt') |
1a6d702e059d
test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents:
7515
diff
changeset
|
65 |
show('data/Project.Planning/Resources/AnotherLongDirectoryName/' |
1a6d702e059d
test-hybridencode: break long string literals
Martin Geisler <mg@lazybytes.net>
parents:
7515
diff
changeset
|
66 |
'Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt') |
12687
34d8247a4595
store: encode first period or space in filenames (issue1713)
Adrian Buehlmann <adrian@cadifra.com>
parents:
8659
diff
changeset
|
67 |
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
|
68 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
69 |
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
|
70 |
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
|
71 |
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
|
72 |
'/com6.x/com7.x/com8.x/com9.x') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
73 |
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
|
74 |
'/x.com6/x.com7/x.com8/x.com9') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
75 |
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
|
76 |
'/com6x/com7x/com8x/com9x') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
77 |
show('data/xc/xco/xcom0/xcom1/xcom2/xcom3/xcom4/xcom5' |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
78 |
'/xcom6/xcom7/xcom8/xcom9') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
79 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
80 |
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
|
81 |
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
|
82 |
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
|
83 |
'/lpt6.x/lpt7.x/lpt8.x/lpt9.x') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
84 |
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
|
85 |
'/x.lpt6/x.lpt7/x.lpt8/x.lpt9') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
86 |
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
|
87 |
'/lpt6x/lpt7x/lpt8x/lpt9x') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
88 |
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
|
89 |
'/xlpt6/xlpt7/xlpt8/xlpt9') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
90 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
91 |
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
|
92 |
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
|
93 |
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
|
94 |
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
|
95 |
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
|
96 |
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
|
97 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
98 |
print "largest unhashed path" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
99 |
show('data/123456789-123456789-123456789-123456789-123456789-' |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
100 |
'unhashed--xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
101 |
'123456789-12345') |
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 |
print "shortest hashed path" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
104 |
show('data/123456789-123456789-123456789-123456789-123456789-' |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
105 |
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
106 |
'123456789-123456') |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
107 |
|
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
108 |
print "changing one char in part that's hashed away produces a different hash" |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
109 |
show('data/123456789-123456789-123456789-123456789-123456789-' |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
110 |
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxy-' |
61bd77b57c86
test-hybridencode: more testcases
Adrian Buehlmann <adrian@cadifra.com>
parents:
17404
diff
changeset
|
111 |
'123456789-123456') |
17440
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
112 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
113 |
print "uppercase hitting length limit due to encoding" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
114 |
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
|
115 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
116 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
117 |
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
|
118 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
119 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
120 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
121 |
print "compare with lowercase not hitting limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
122 |
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
|
123 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
124 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
125 |
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
|
126 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
127 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
128 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
129 |
print "not hitting limit with any of these" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
130 |
show("data/abcdefghijklmnopqrstuvwxyz0123456789 !#%&'()+,-.;=" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
131 |
"[]^`{}xxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
132 |
"123456789-12345") |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
133 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
134 |
print "underbar hitting length limit due to encoding" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
135 |
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
|
136 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
137 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
138 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
139 |
print "tilde hitting length limit due to encoding" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
140 |
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
|
141 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
142 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
143 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
144 |
print "Windows reserved characters hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
145 |
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
|
146 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
147 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
148 |
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
|
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/:23456789-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 |
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
|
155 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
156 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
157 |
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
|
158 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
159 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
160 |
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
|
161 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
162 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
163 |
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
|
164 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
165 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
166 |
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
|
167 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
168 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
169 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
170 |
print "initial space hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
171 |
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
|
172 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
173 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
174 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
175 |
print "initial dot hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
176 |
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
|
177 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
178 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
179 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
180 |
print "trailing space in filename hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
181 |
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
|
182 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
183 |
'123456789-1234 ') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
184 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
185 |
print "trailing dot in filename hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
186 |
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
|
187 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
188 |
'123456789-1234.') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
189 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
190 |
print "initial space in directory hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
191 |
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
|
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 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
195 |
print "initial dot in directory hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
196 |
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
|
197 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
198 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
199 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
200 |
print "trailing space in directory hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
201 |
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
|
202 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
203 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
204 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
205 |
print "trailing dot in directory hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
206 |
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
|
207 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
208 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
209 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
210 |
print "with directories that need direncoding, hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
211 |
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
|
212 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
213 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
214 |
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
|
215 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
216 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
217 |
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
|
218 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
219 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
220 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
221 |
print "Windows reserved filenames, hitting length limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
222 |
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
|
223 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
224 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
225 |
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
|
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 |
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
|
229 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
230 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
231 |
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
|
232 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
233 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
234 |
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
|
235 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
236 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
237 |
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
|
238 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
239 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
240 |
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
|
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 |
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
|
244 |
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
245 |
'123456789-12345') |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
246 |
|
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
247 |
print "non-reserved names, just not hitting limit" |
5be041254a2e
test-hybridencode: add more testcases for hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17432
diff
changeset
|
248 |
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
|
249 |
'/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
|
250 |
'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
|
251 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
252 |
print "hashed path with largest untruncated 1st dir" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
253 |
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
|
254 |
'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
|
255 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
256 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
257 |
print "hashed path with smallest truncated 1st dir" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
258 |
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
|
259 |
'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
|
260 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
261 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
262 |
print "hashed path with largest untruncated two dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
263 |
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
|
264 |
'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
|
265 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
266 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
267 |
print "hashed path with smallest truncated two dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
268 |
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
|
269 |
'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
|
270 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
271 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
272 |
print "hashed path with largest untruncated three dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
273 |
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
|
274 |
'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
|
275 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
276 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
277 |
print "hashed path with smallest truncated three dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
278 |
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
|
279 |
'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
|
280 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
281 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
282 |
print "hashed path with largest untruncated four dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
283 |
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
|
284 |
'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
|
285 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
286 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
287 |
print "hashed path with smallest truncated four dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
288 |
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
|
289 |
'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
|
290 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
291 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
292 |
print "hashed path with largest untruncated five dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
293 |
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
|
294 |
'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
|
295 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
296 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
297 |
print "hashed path with smallest truncated five dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
298 |
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
|
299 |
'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
|
300 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
301 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
302 |
print "hashed path with largest untruncated six dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
303 |
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
|
304 |
'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
|
305 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
306 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
307 |
print "hashed path with smallest truncated six dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
308 |
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
|
309 |
'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
|
310 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
311 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
312 |
print "hashed path with largest untruncated seven dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
313 |
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
|
314 |
'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
|
315 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
316 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
317 |
print "hashed path with smallest truncated seven dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
318 |
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
|
319 |
'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
|
320 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
321 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
322 |
print "hashed path with largest untruncated eight dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
323 |
print "(directory 8 is dropped because it hits _maxshortdirslen)" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
324 |
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
|
325 |
'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
|
326 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
327 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
328 |
print "hashed path with smallest truncated eight dirs" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
329 |
print "(directory 8 is dropped because it hits _maxshortdirslen)" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
330 |
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
|
331 |
'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
|
332 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
333 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
334 |
print "hashed path with largest non-dropped directory 8" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
335 |
print "(just not hitting the _maxshortdirslen boundary)" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
336 |
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
|
337 |
'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
|
338 |
'123456789-123456') |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
339 |
|
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
340 |
print "hashed path with shortest dropped directory 8" |
4aec89d4faa2
test-hybridencode: testing dir levels and dir prefix lenghts of hashed paths
Adrian Buehlmann <adrian@cadifra.com>
parents:
17445
diff
changeset
|
341 |
print "(just hitting the _maxshortdirslen boundary)" |
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/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
|
343 |
'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
|
344 |
'123456789-123456') |