Changeset 15399
- Timestamp:
- May 30, 2012, 6:19:30 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/tests/ansi-tests/print-floats.lsp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/ansi-tests/print-floats.lsp
r8991 r15399 29 29 for s2 = (format nil "~A.0" i) 30 30 repeat 10000 31 unless (or (/= i (rational f)) ; not enough bits 31 unless (or (= i -10000000) ; the only value that's out of range 32 (/= i (rational f)) ; not enough bits 32 33 ;; (> (nth-value 1 (integer-decode-float f)) 0) 33 34 (equalp s1 s2)) … … 124 125 for s2 = (format nil "~A.0" i) 125 126 repeat 10000 126 unless (or (/= i (rational f)) ;; not enough bits 127 ;; (> (nth-value 1 (integer-decode-float f)) 0) 128 (equalp s1 s2)) 127 unless (or (= i -10000000) ; out of range 128 (/= i (rational f)) ;; not enough bits 129 ;; (> (nth-value 1 (integer-decode-float f)) 0) 130 (equalp s1 s2)) 129 131 collect (list i f s1 s2)))) 130 132 nil) … … 219 221 for s2 = (format nil "~A.0" i) 220 222 repeat 10000 221 unless (or (/= i (rational f)) ;; not enough bits 222 ;; (> (nth-value 1 (integer-decode-float f)) 0) 223 (equalp s1 s2)) 223 unless (or (= i -10000000) 224 (/= i (rational f)) ;; not enough bits 225 ;; (> (nth-value 1 (integer-decode-float f)) 0) 226 (equalp s1 s2)) 224 227 collect (list i f s1 s2)))) 225 228 nil) … … 314 317 for s2 = (format nil "~A.0" i) 315 318 repeat 10000 316 unless (or (/= i (rational f)) ;; not enough bits 317 ;; (> (nth-value 1 (integer-decode-float f)) 0) 318 (equalp s1 s2)) 319 unless (or (= i -10000000) 320 (/= i (rational f)) ;; not enough bits 321 ;; (> (nth-value 1 (integer-decode-float f)) 0) 322 (equalp s1 s2)) 319 323 collect (list i f s1 s2)))) 320 324 nil)
Note:
See TracChangeset
for help on using the changeset viewer.
