From 99eb897599da2fcabb6e946556a586af17ffdbe0 Mon Sep 17 00:00:00 2001 From: "Zooko O'Whielacronx zooko@zooko.com" Date: Thu, 1 Feb 2007 10:25:28 +0530 Subject: [PATCH] pyfec: add variant of randomized test which happens to match the interface to benchutil darcs-hash:e5d2cdc31a52bf4de918a01ef872ff63e974e975 --- 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 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(",") -- 2.45.2