]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
pyfec: add variant of randomized test which happens to match the interface to benchutil
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 1 Feb 2007 05:55:28 +0000 (22:55 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 1 Feb 2007 05:55:28 +0000 (22:55 -0700)
pyfec/fec/test/test_pyfec.py

index 8e414f96526f852d99f65ea8a9b4bc055e2ae8fa..e536d3b15b93c15ddca833488fdd686d6b23c63e 100644 (file)
@@ -91,6 +91,12 @@ def _test_random():
     ss = [ randstr(l/k) for x in range(k) ]
     _h(k, m, ss)
 
+def _test_random_with_l(l):
+    m = 83
+    k = 19
+    ss = [ randstr(l/k) for x in range(k) ]
+    _h(k, m, ss)
+
 def test_random(noisy=True):
     for i in range(2**5):
         # sys.stdout.write(",")