[uim-commit] r2325 - branches/r5rs/sigscheme/test
yamaken at freedesktop.org
yamaken at freedesktop.org
Sat Dec 3 06:32:15 PST 2005
Author: yamaken
Date: 2005-12-03 06:32:09 -0800 (Sat, 03 Dec 2005)
New Revision: 2325
Modified:
branches/r5rs/sigscheme/test/test-define.scm
branches/r5rs/sigscheme/test/test-exp.scm
Log:
* sigscheme/test/test-exp.scm
- Add tests for let, let* and letrec that causes SEGV
* sigscheme/test/test-define.scm
- Insert license header
Modified: branches/r5rs/sigscheme/test/test-define.scm
===================================================================
--- branches/r5rs/sigscheme/test/test-define.scm 2005-12-03 13:03:38 UTC (rev 2324)
+++ branches/r5rs/sigscheme/test/test-define.scm 2005-12-03 14:32:09 UTC (rev 2325)
@@ -1,3 +1,35 @@
+;; FileName : test-define.scm
+;; About : unit test for R5RS 'define'
+;;
+;; Copyright (C) 2005 by Kazuki Ohta (mover at hct.zaq.ne.jp)
+;;
+;; All rights reserved.
+;;
+;; Redistribution and use in source and binary forms, with or without
+;; modification, are permitted provided that the following conditions
+;; are met:
+;;
+;; 1. Redistributions of source code must retain the above copyright
+;; notice, this list of conditions and the following disclaimer.
+;; 2. Redistributions in binary form must reproduce the above copyright
+;; notice, this list of conditions and the following disclaimer in the
+;; documentation and/or other materials provided with the distribution.
+;; 3. Neither the name of authors nor the names of its contributors
+;; may be used to endorse or promote products derived from this software
+;; without specific prior written permission.
+;;
+;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
+;; IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+;; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+;; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
+;; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+;; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+;; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+;; PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+;; LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
(load "./test/unittest.scm")
; invalid form
Modified: branches/r5rs/sigscheme/test/test-exp.scm
===================================================================
--- branches/r5rs/sigscheme/test/test-exp.scm 2005-12-03 13:03:38 UTC (rev 2324)
+++ branches/r5rs/sigscheme/test/test-exp.scm 2005-12-03 14:32:09 UTC (rev 2325)
@@ -267,6 +267,9 @@
(assert-error "let invalid form #8"
(lambda ()
(let ((a 1)) . a)))
+(assert-error "let invalid form #9"
+ (lambda ()
+ (let (1) #t)))
(assert-equal? "basic let test1" 0 (let ((n 0))
n))
@@ -337,6 +340,9 @@
(assert-error "let* invalid form #8"
(lambda ()
(let* ((a 1)) . a)))
+(assert-error "let invalid form #9"
+ (lambda ()
+ (let* (1) #t)))
(assert-equal? "basic let* test1" 70 (let ((x 2) (y 3))
(let* ((x 7)
@@ -370,6 +376,9 @@
(assert-error "letrec invalid form #8"
(lambda ()
(letrec ((a 1)) . a)))
+(assert-error "let invalid form #9"
+ (lambda ()
+ (letrec (1) #t)))
(assert-equal? "basic letrec test1" #t (letrec ((even?
(lambda (n)
More information about the uim-commit
mailing list