diff options
author | Mark H Weaver <mhw@netris.org> | 2013-09-13 00:24:04 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2013-09-13 00:24:04 -0400 |
commit | c04bf4337b88ea45641065b7fe70dd0973b8ce94 (patch) | |
tree | 53e2d02477e40bd1da5a45cc3240ea1420691777 /test-suite/tests | |
parent | 6871327742d3e1a0966aa8fed04c911311c12c2a (diff) | |
parent | 803c087e6b72f59ed9e529c1e1ca4fbe34e8eda5 (diff) | |
download | guile-c04bf4337b88ea45641065b7fe70dd0973b8ce94.tar.gz |
Merge remote-tracking branch 'origin/stable-2.0'
Conflicts:
module/srfi/srfi-9.scm
module/web/server.scm
Diffstat (limited to 'test-suite/tests')
-rw-r--r-- | test-suite/tests/srfi-9.test | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test-suite/tests/srfi-9.test b/test-suite/tests/srfi-9.test index e951fc67f..e1812bfbf 100644 --- a/test-suite/tests/srfi-9.test +++ b/test-suite/tests/srfi-9.test @@ -1,7 +1,8 @@ ;;;; srfi-9.test --- Test suite for Guile's SRFI-9 functions. -*- scheme -*- ;;;; Martin Grabmueller, 2001-05-10 ;;;; -;;;; Copyright (C) 2001, 2006, 2007, 2010, 2011, 2012 Free Software Foundation, Inc. +;;;; Copyright (C) 2001, 2006, 2007, 2010, 2011, 2012, +;;;; 2013 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 @@ -41,15 +42,18 @@ (define b (make-bar 123 456)) +(define exception:syntax-error-wrong-num-args + (cons 'syntax-error "Wrong number of arguments")) + (with-test-prefix "constructor" ;; Constructors are defined using `define-integrable', meaning that direct ;; calls as in `(make-foo)' lead to a compile-time psyntax error, hence the ;; distinction below. - (pass-if-exception "foo 0 args (inline)" exception:syntax-pattern-unmatched + (pass-if-exception "foo 0 args (inline)" exception:syntax-error-wrong-num-args (compile '(make-foo) #:env (current-module))) - (pass-if-exception "foo 2 args (inline)" exception:syntax-pattern-unmatched + (pass-if-exception "foo 2 args (inline)" exception:syntax-error-wrong-num-args (compile '(make-foo 1 2) #:env (current-module))) (pass-if-exception "foo 0 args" exception:wrong-num-args |