38 lines
754 B
Plaintext
38 lines
754 B
Plaintext
;; Function To Be Tested: PLUSP
|
|
;;
|
|
;; Source: Guy L Steele's CLTL
|
|
;; Section: 12.2 Predicates on Numbers
|
|
;; Page: 196
|
|
;;
|
|
;; Created By: Kelly Roach
|
|
;;
|
|
;; Creation Date: July 12,1986
|
|
;;
|
|
;; Last Update: July 12,1986
|
|
;;
|
|
;; Filed As: {ERIS}<LISPCORE>CML>TEST>12-2-PLUSP.TEST
|
|
;;
|
|
;;
|
|
;; Syntax: (PLUSP NUMBER)
|
|
;;
|
|
;; Function Description:
|
|
;; This predicate is true if NUMBER is strictly greater than zero,
|
|
;; and is false otherwise.
|
|
;; It is an error if the argument NUMBER is not a non-complex number.
|
|
;;
|
|
;; Argument(s): NUMBER - a number
|
|
;;
|
|
;; Returns: T or NIL
|
|
;;
|
|
|
|
|
|
|
|
(do-test plusp-test
|
|
(and (plusp 1)
|
|
(plusp 4.0)
|
|
(plusp +79)
|
|
(not (plusp 0))
|
|
(not (plusp -9))))
|
|
|
|
STOP
|