From: Zooko O'Whielacronx Date: Thu, 1 Feb 2007 05:55:28 +0000 (-0700) Subject: pyfec: add variant of randomized test which happens to match the interface to benchutil X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~136 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/css?a=commitdiff_plain;h=18de69456c7d80d2f69fca0ac50928c23511d081;p=tahoe-lafs%2Ftahoe-lafs.git pyfec: add variant of randomized test which happens to match the interface to benchutil --- diff --git a/pyfec/fec/test/test_pyfec.py b/pyfec/fec/test/test_pyfec.py index 8e414f96..e536d3b1 100644 --- 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(",")