(-): Add test for negative inum subtract bignum.
authorKevin Ryde <user42@zip.com.au>
Mon, 5 May 2003 22:59:03 +0000 (22:59 +0000)
committerKevin Ryde <user42@zip.com.au>
Mon, 5 May 2003 22:59:03 +0000 (22:59 +0000)
test-suite/tests/numbers.test

index 4994918..b90eab2 100644 (file)
@@ -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
 ;;; -
 ;;;
 
+(with-test-prefix "-"
+
+  (pass-if "-inum - +bignum"
+    (= #x-100000000000000000000000000000001
+       (- -1 #x100000000000000000000000000000000))))
+
 ;;;
 ;;; *
 ;;;