(end (fix:end-index end (string-length string) caller))
(start (fix:start-index start end caller))
(z
- (cond ((string=? string "nan.0") (flo:nan.0))
+ (cond ((string=? string "+nan.0") (flo:nan.0))
+ ((string=? string "-nan.0") (flo:nan.0))
((string=? string "+inf.0") (flo:+inf.0))
((string=? string "-inf.0") (flo:-inf.0))
(else
ctx
(let ((string (read-atom db (list char))))
(or (maybe-keyword db string)
- (if (string=? string "nan.0")
- (flo:nan.0)
- (make-symbol db string)))))
+ (make-symbol db string))))
(define (maybe-keyword db string)
(cond ((and (eq? 'suffix (db-keyword-style db))
`(("+inf.0" ,assert-inf+)
("-inf.0" ,assert-inf-)
("inf.0" ,assert-symbol)
- ("nan.0" ,assert-symbol xfail))
+ ("nan.0" ,assert-symbol))
(lambda (string #!optional assertion xfail?)
(with-expected-failure xfail?
(lambda ()
(assert-equal (write-to-string object) string))))))
(define-enumerated-test 'read
- `(("+nan.0" ,assert-nan xfail)
- ("-nan.0" ,assert-nan xfail))
+ `(("+nan.0" ,assert-nan)
+ ("-nan.0" ,assert-nan))
(lambda (string assertion #!optional xfail?)
(with-expected-failure xfail?
(lambda ()