From: Scott Worley Date: Fri, 24 May 2019 15:00:21 +0000 (-0700) Subject: Test with larger tables X-Git-Tag: v1.0~1 X-Git-Url: http://git.scottworley.com/inverse-tax/commitdiff_plain/9c149d52fcc4ed94f5de81801c1ecf8fc56adb60 Test with larger tables --- diff --git a/tax.test.js b/tax.test.js index 21b98b6..29f436f 100644 --- a/tax.test.js +++ b/tax.test.js @@ -16,7 +16,7 @@ function rand(limit = 99) { function make_random_tax_table() { function make_random_table(min_threshold) { - if (rand(2)) return []; + if (rand(4) == 0) return []; const start = min_threshold === undefined ? rand() : min_threshold; const end = start + 1 + rand(); return [[start, rand()]].concat(make_random_table(end));