mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
fix (expt #t 0)
* libguile/numbers.c (scm_expt): Fix check regarding when to dispatch to integer-expt. * test-suite/tests/numbers.test ("expt"): Add test.
This commit is contained in:
parent
78f79f18e2
commit
a4082ab57e
2 changed files with 3 additions and 1 deletions
|
@ -2875,6 +2875,8 @@
|
|||
;;;
|
||||
|
||||
(with-test-prefix "expt"
|
||||
(pass-if-exception "non-numeric base" exception:wrong-type-arg
|
||||
(expt #t 0))
|
||||
(pass-if "(= 1 (expt 0 0))" (= 1 (expt 0 0)))
|
||||
(pass-if "(= 1 (expt 0 0.0))" (= 1 (expt 0 0.0)))
|
||||
(pass-if "(= 1 (expt 0.0 0))" (= 1 (expt 0.0 0)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue