X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Farith.pure.lisp;h=88bb51516c0389206c632881ee8c7450d24640a9;hb=77d94d36bcfd3d5eea73ad51e6ee621a8938f995;hp=8d1d12b2fccef389ac0a3ed20d29e37ce05b993b;hpb=ad5cd2538240a4283cb4498b21ff7ab23adcde92;p=sbcl.git diff --git a/tests/arith.pure.lisp b/tests/arith.pure.lisp index 8d1d12b..88bb515 100644 --- a/tests/arith.pure.lisp +++ b/tests/arith.pure.lisp @@ -44,6 +44,10 @@ (assert (= (coerce 1/2 '(complex float)) #c(0.5 0.0))) (assert (= (coerce 1.0d0 '(complex float)) #c(1.0d0 0.0d0))) +;;; (COERCE #c( ) '(complex float)) resulted in +;;; an error up to 0.8.17.31 +(assert (= (coerce #c(1 2) '(complex float)) #c(1.0 2.0))) + ;;; COERCE also sometimes failed to verify that a particular coercion ;;; was possible (in particular coercing rationals to bounded float ;;; types.