benchmark.binary-search: remove print in favor of assert.

John Benediktsson 2012-07-13 16:11:01 -07:00
parent 8579244d3d
commit 5568f759e6
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ MEMO: primes-under-million ( -- seq ) 1000000 primes-upto ;
primes-under-million drop
: binary-search-benchmark ( -- )
1 1000000 [a,b] [ primes-under-million sorted-member? ] map length . ;
1 1000000 [a,b] [ primes-under-million sorted-member? ] map
length 1000000 assert= ;
MAIN: binary-search-benchmark