From 18de69456c7d80d2f69fca0ac50928c23511d081 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Wed, 31 Jan 2007 22:55:28 -0700 Subject: [PATCH] pyfec: add variant of randomized test which happens to match the interface to benchutil --- pyfec/fec/test/test_pyfec.py | 6 ++++++ 1 file changed, 6 insertions(+) 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(",") -- 2.45.2