mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-22 20:40:29 +02:00
(-): Add test for negative inum subtract bignum.
This commit is contained in:
parent
9c4443d38c
commit
072e6de2ed
1 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
;;;; numbers.test --- tests guile's numbers -*- scheme -*-
|
||||
;;;; Copyright (C) 2000, 2001 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -1609,6 +1609,12 @@
|
|||
;;; -
|
||||
;;;
|
||||
|
||||
(with-test-prefix "-"
|
||||
|
||||
(pass-if "-inum - +bignum"
|
||||
(= #x-100000000000000000000000000000001
|
||||
(- -1 #x100000000000000000000000000000000))))
|
||||
|
||||
;;;
|
||||
;;; *
|
||||
;;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue