Skip to content

Commit 5c3ed59

Browse files
committed
Add a test to catch this copysign bug
1 parent cd5656f commit 5c3ed59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test.rkt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@
315315
(with-check-info (['split-argument k] ['ilo ilo] ['ihi ihi] ['iylo iylo] ['iyhi iyhi])
316316
(check-ival-equals? iy
317317
(parameterize ([bf-precision out-prec])
318-
(ival-union iylo iyhi))))))
318+
(ival-union iylo iyhi)))
319+
;; Refining an input argument should refine the output.
320+
(check ival-refines? iy iylo)
321+
(check ival-refines? iy iyhi))))
319322
(when (or (ival-lo-fixed? iy) (ival-hi-fixed? iy))
320323
(define iy*
321324
(parameterize ([bf-precision 128])

0 commit comments

Comments
 (0)