mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-23 04:50:28 +02:00
(string->number): Exercise polar form with invalid angle.
This commit is contained in:
parent
1bbf2cb8cd
commit
11f27efa11
1 changed files with 6 additions and 1 deletions
|
@ -875,7 +875,12 @@
|
|||
((> len 300))
|
||||
|
||||
(pass-if (list 'length len)
|
||||
(eqv? want (string->number (make-string len digit) base)))))))
|
||||
(eqv? want (string->number (make-string len digit) base))))))
|
||||
|
||||
;; in guile 1.6.7 and earlier, bad polar forms (where the conversion of
|
||||
;; the angle gave #f) caused a segv
|
||||
(pass-if "1@a"
|
||||
(eq? #f (string->number "1@a"))))
|
||||
|
||||
;;;
|
||||
;;; number?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue