1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 21:40:33 +02:00

Add separate test file for GOOPS-less tests.

* test-suite/tests/00-initial-env.test: New file.

* test-suite/Makefile.am (SCM_TESTS): Add `tests/00-initial-env.test'.

* test-suite/tests/numbers.test ("+")["wrong type argument"]: Move to
  `00-initial-env.test'.
This commit is contained in:
Ludovic Courtès 2010-03-31 11:38:02 +02:00
parent 0ecd70a271
commit cedf24d8bd
3 changed files with 48 additions and 12 deletions

View file

@ -21,7 +21,8 @@
SUBDIRS = standalone SUBDIRS = standalone
SCM_TESTS = tests/alist.test \ SCM_TESTS = tests/00-initial-env.test \
tests/alist.test \
tests/and-let-star.test \ tests/and-let-star.test \
tests/arbiters.test \ tests/arbiters.test \
tests/arrays.test \ tests/arrays.test \

View file

@ -0,0 +1,44 @@
;;;; 00-initial-env.test --- Roots. -*- mode: scheme; coding: utf-8; -*-
;;;;
;;;; Copyright (C) 2010 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
;;;; License as published by the Free Software Foundation; either
;;;; version 3 of the License, or (at your option) any later version.
;;;;
;;;; This library is distributed in the hope that it will be useful,
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;;;; Lesser General Public License for more details.
;;;;
;;;; You should have received a copy of the GNU Lesser General Public
;;;; License along with this library; if not, write to the Free Software
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
(define-module (the-initial-env)
#:use-module (test-suite lib))
;;; A set of tests to run early. The file name is to have `check-guile' pick
;;; this test file first.
;;;
;;; Tests to be run when GOOPS is not loaded.
;;;
(with-test-prefix "goopsless"
(with-test-prefix "+ wrong type argument"
;; The following tests assume that `+' hasn't been turned into a generic
;; and extended. Since the ECMAScript run-time library does exactly
;; that, they must be run before `ecmascript.test'.
(pass-if-exception "1st argument string"
exception:wrong-type-arg
(+ "1" 2))
(pass-if-exception "2nd argument bool"
exception:wrong-type-arg
(+ 1 #f))))

View file

@ -1,5 +1,5 @@
;;;; numbers.test --- tests guile's numbers -*- scheme -*- ;;;; numbers.test --- tests guile's numbers -*- scheme -*-
;;;; Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc. ;;;; Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2009, 2010 Free Software Foundation, Inc.
;;;; ;;;;
;;;; This library is free software; you can redistribute it and/or ;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public ;;;; modify it under the terms of the GNU Lesser General Public
@ -2436,17 +2436,8 @@
(with-test-prefix "+" (with-test-prefix "+"
(pass-if "documented?" (pass-if "documented?"
(documented? +)) (documented? +)))
(with-test-prefix "wrong type argument"
(pass-if-exception "1st argument string"
exception:wrong-type-arg
(+ "1" 2))
(pass-if-exception "2nd argument bool"
exception:wrong-type-arg
(+ 1 #f))))
;;; ;;;
;;; - ;;; -
;;; ;;;