mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +02:00
(string->number): Exercise polar form with invalid angle.
This commit is contained in:
parent
18bd7605a7
commit
48e78ba65c
1 changed files with 6 additions and 1 deletions
|
@ -1205,7 +1205,12 @@
|
|||
|
||||
(pass-if-exception "exponent too big"
|
||||
exception:out-of-range
|
||||
(string->number "12.13e141414")))
|
||||
(string->number "12.13e141414"))
|
||||
|
||||
;; 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