Bug fixes for lcs.diff2html; xml.writer
[factor/jcg.git] / basis / math / primes / primes-tests.factor
blobdb738399ef828ab6a49f207c028eb39c4be536b2
1 USING: arrays math.primes tools.test ;
3 { 1237 } [ 1234 next-prime ] unit-test
4 { f t } [ 1234 prime? 1237 prime? ] unit-test
5 { { 2 3 5 7 } } [ 10 primes-upto >array ] unit-test
6 { { 999983 1000003 } } [ 999982 1000010 primes-between >array ] unit-test
8 { { 4999963 4999999 5000011 5000077 5000081 } }
9 [ 4999962 5000082 primes-between >array ] unit-test