minimal tests for min, max

This commit is contained in:
Danny Yoo 2011-08-31 15:57:28 -04:00
parent 8eb3020ba7
commit baa268bce9
3 changed files with 24 additions and 2 deletions

View File

@ -242,8 +242,8 @@ raise-mismatch-error
quotient quotient
remainder remainder
modulo modulo
;; max max
;; min min
gcd gcd
lcm lcm
floor floor

View File

@ -5,3 +5,13 @@ true
false false
false false
false false
3
6
9
20
20
3
3
1
3
3

View File

@ -8,3 +8,15 @@
(number? "42") (number? "42")
(number? 'this-is-a-test) (number? 'this-is-a-test)
(number? (list 3 4 5)) (number? (list 3 4 5))
(max 3)
(max 3 4 5 6)
(max 3 1 4 1 5 9 2 6)
(max 3 20)
(max 20 3)
(min 3)
(min 3 4 5 6)
(min 3 1 4 1 5 9 2 6)
(min 3 20)
(min 20 3)