(declare (integrate flo:integer?))
(define (flo:integer? x)
- (flo:= x (flo:round x)))
+ (and (flo:finite? x)
+ (flo:= x (flo:round x))))
(define (flo:rationalize x e)
(flo:simplest-rational (flo:- x e) (flo:+ x e)))
1/2
0.1
1+2i
- (flo:nan.0))
- assert-not-integer)
-
-(define-enumerated-test 'not-integer?/broken
- (vector
+ (flo:nan.0)
(flo:+inf.0)
(flo:-inf.0))
- (lambda (x)
- (expect-failure (lambda () (assert-not-integer x)))))
\ No newline at end of file
+ assert-not-integer)
\ No newline at end of file