(lambda (string assertion #!optional xfail)
(with-expected-failure xfail
(lambda ()
- (assertion (read-from-string string))))))
\ No newline at end of file
+ (assertion (read-from-string string))))))
+
+(define-enumerated-test 'read-error
+ `(("#e+nan.0" ,expect-failure)
+ ("#e-nan.0" ,expect-failure)
+ ("#e+inf.0" ,expect-failure)
+ ("#e-inf.0" ,expect-failure))
+ (lambda (string #!optional xfail)
+ (with-expected-failure xfail
+ (lambda ()
+ (assert-error (lambda () (read-from-string string)))))))
\ No newline at end of file