Patchwork [2,of,3] test-pathencode: reduce makepart length requirement by 1

login
register
mail settings
Submitter Siddharth Agarwal
Date June 20, 2013, 3:18 p.m.
Message ID <0388beba5bfc4d02de6d.1371741493@dev1091.prn1.facebook.com>
Download mbox | patch
Permalink /patch/1743/
State Superseded, archived
Headers show

Comments

Siddharth Agarwal - June 20, 2013, 3:18 p.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1371708082 25200
#      Wed Jun 19 23:01:22 2013 -0700
# Node ID 0388beba5bfc4d02de6d0adcefc8c59f23e19b24
# Parent  149f9a739bbecea91c11fff3612909ceb3c614e0
test-pathencode: reduce makepart length requirement by 1

This allows path components of length 1 to be generated.

Patch

diff --git a/tests/test-pathencode.py b/tests/test-pathencode.py
--- a/tests/test-pathencode.py
+++ b/tests/test-pathencode.py
@@ -125,7 +125,7 @@ 
     p = pickfrom(rng, firsttable)(rng)
     l = len(p)
     ps = [p]
-    while l <= k:
+    while l < k:
         p = pickfrom(rng, resttable)(rng)
         l += len(p)
         ps.append(p)