Streamline 4-digit primes tests.
This commit is contained in:
parent
c122df4c9e
commit
e1ffc98c53
1 changed files with 7 additions and 4 deletions
11
primes.scm
11
primes.scm
|
@ -79,10 +79,13 @@
|
||||||
(define (primes-tests!)
|
(define (primes-tests!)
|
||||||
(run-tests
|
(run-tests
|
||||||
primes
|
primes
|
||||||
|
(test-true check-prime (check-prime primes<100 67))
|
||||||
|
(test-true is-4digit-prime? (is-4digit-prime? 2803))
|
||||||
|
(test-false is-4digit-prime? (is-4digit-prime? 666))
|
||||||
|
(test-false is-4digit-prime? (is-4digit-prime? 997))
|
||||||
|
(test-false is-4digit-prime? (is-4digit-prime? 6666))
|
||||||
|
(test-false is-4digit-prime? (is-4digit-prime? 66666))
|
||||||
|
(test-false is-4digit-prime? (is-4digit-prime? 10007))
|
||||||
))
|
))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(import primes)
|
|
||||||
|
|
||||||
(primes-tests!)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue