--- numbers.test.~1.17.~ 2003-05-04 09:11:34.000000000 +1000 +++ numbers.test 2003-05-04 09:31:46.000000000 +1000 @@ -1739,3 +1739,16 @@ ;;; ;;; inexact->exact ;;; + +;;; +;;; logcount +;;; + +(with-test-prefix "logcount" + + (with-test-prefix "negatives ...11100..00" + (do ((n -1 (ash n 1)) + (i 0 (1+ i))) + ((> i 256)) + (pass-if n + (= i (logcount n))))))