diff tests/test-hybridencode.py @ 7275:c00cdac22d3c

add new test-hybridencode.py
author Adrian Buehlmann <adrian@cadifra.com>
date Mon, 27 Oct 2008 19:39:41 +0100
parents
children e54cf540c6ca
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-hybridencode.py	Mon Oct 27 19:39:41 2008 +0100
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+from mercurial import store
+
+enc = store.hybridencode # used for fncache repo format
+
+def show(s):
+    print "A = '%s'" % s
+    print "B = '%s'" % enc(s)
+    print
+
+show('data/aux.bla/bla.aux/prn/PRN/lpt/com3/nul/coma/foo.NUL/normal.c.i')
+
+show('data/AUX/SECOND/X.PRN/FOURTH/FI:FTH/SIXTH/SEVENTH/EIGHTH/NINETH/TENTH/ELEVENTH/LOREMIPSUM.TXT.i')
+show('data/enterprise/openesbaddons/contrib-imola/corba-bc/netbeansplugin/wsdlExtension/src/main/java/META-INF/services/org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider.i')
+show('data/AUX.THE-QUICK-BROWN-FOX-JU:MPS-OVER-THE-LAZY-DOG-THE-QUICK-BROWN-FOX-JUMPS-OVER-THE-LAZY-DOG.TXT.i')