1
0
mirror of synced 2026-05-03 06:39:40 +00:00
Files
Interlisp.medley/internal/test/LANGUAGE/AUTO/12-7-LOGIOR.TEST

38 lines
809 B
Plaintext

;; Function To Be Tested: LOGIOR
;;
;; Source: Guy L Steele's CLTL
;; Section: 12.7 Logical Operations on Numbers
;; Page: 221
;;
;; Created By: Kelly Roach
;;
;; Creation Date: July 12,1986
;;
;; Last Update: July 12,1986
;;
;; Filed As: {ERIS}<LISPCORE>CML>TEST>12-7-LOGIOR.TEST
;;
;;
;; Syntax: (LOGIOR &REST NUMBERS)
;;
;; Function Description:
;; This returns the bit-wise logical INCLUSIVE OR of its arguments.
;; If no argument is given, then the result is zero,
;; which is an identity for this operation.
;;
;; Argument(s): NUMBERS - numbers
;;
;; Returns: a number
;;
(do-test logior-test
(and (eq (logior 0 0) 0)
(eq (logior 0 1) 1)
(eq (logior 1 0) 1)
(eq (logior 1 1) 1)
(eq (logior 1 3 9) 11)))
STOP