pyfec: add variant of randomized test which happens to match the interface to benchutil
authorZooko O'Whielacronx zooko@zooko.com <zooko@zooko.com>
Thu, 1 Feb 2007 04:55:28 +0000 (10:25 +0530)
committerZooko O'Whielacronx zooko@zooko.com <zooko@zooko.com>
Thu, 1 Feb 2007 04:55:28 +0000 (10:25 +0530)
darcs-hash:e5d2cdc31a52bf4de918a01ef872ff63e974e975

pyfec/fec/test/test_pyfec.py

index 8e414f96526f852d99f65ea8a9b4bc055e2ae8fa..e536d3b15b93c15ddca833488fdd686d6b23c63e 100755 (executable)
@@ -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(",")