From: Zooko O'Whielacronx zooko@zooko.com Date: Thu, 1 Feb 2007 04:55:28 +0000 (+0530) Subject: pyfec: add variant of randomized test which happens to match the interface to benchutil X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/frontends/quickstart.html?a=commitdiff_plain;h=99eb897599da2fcabb6e946556a586af17ffdbe0;p=tahoe-lafs%2Fzfec.git pyfec: add variant of randomized test which happens to match the interface to benchutil darcs-hash:e5d2cdc31a52bf4de918a01ef872ff63e974e975 --- diff --git a/pyfec/fec/test/test_pyfec.py b/pyfec/fec/test/test_pyfec.py index 8e414f9..e536d3b 100755 --- a/pyfec/fec/test/test_pyfec.py +++ b/pyfec/fec/test/test_pyfec.py @@ -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(",")