bloom-filters: fix tests on 64-bit machines

Lose the test that might actually create a very large bit-array and use
a number of elements that will be big enough, whatever the platform.
Now tested on a 64-bit machine.
db4
Alec Berryman 2009-05-12 19:50:19 -04:00
parent 5e2b985d9e
commit bf81b19ed7
1 changed files with 1 additions and 4 deletions

View File

@ -24,10 +24,7 @@ IN: bloom-filters.tests
[ 4 32 ] [ 0.05 5 size-bloom-filter ] unit-test
! This is a lot of bits.
: oversized-filter-params ( -- error-rate n-objects )
0.00000001 400000000000000 ;
! [ oversized-filter-params size-bloom-filter ] [ capacity-error? ] must-fail-with
! [ oversized-filter-params <bloom-filter> ] [ capacity-error? ] must-fail-with
[ 0.00000001 max-array-capacity size-bloom-filter ] [ capacity-error? ] must-fail-with
! Other error conditions.
[ 1.0 2000 <bloom-filter> ] [ invalid-error-rate? ] must-fail-with