1 ;;;; curried-definitions.test -*- scheme -*-
2 ;;;; Copyright (C) 2010 Free Software Foundation, Inc.
4 ;;;; This library is free software; you can redistribute it and/or
5 ;;;; modify it under the terms of the GNU Lesser General Public
6 ;;;; License as published by the Free Software Foundation; either
7 ;;;; version 3 of the License, or (at your option) any later version.
9 ;;;; This library is distributed in the hope that it will be useful,
10 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ;;;; Lesser General Public License for more details.
14 ;;;; You should have received a copy of the GNU Lesser General Public
15 ;;;; License along with this library; if not, write to the Free Software
16 ;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 (define-module (test-suite test-curried-definitions)
19 #:use-module (test-suite lib)
20 #:use-module (ice-9 curried-definitions))
22 (with-test-prefix "define"
23 (pass-if "define works as usual"
25 (primitive-eval '(let ()
29 (pass-if "define works as usual (2)"
31 (primitive-eval '(let ()
35 (pass-if "currying once"
37 (primitive-eval '(let ()
41 (pass-if "currying twice"
43 (primitive-eval '(let ()
48 (pass-if "just a value"
50 (primitive-eval '(let ()
54 (with-test-prefix "define*"
55 (pass-if "define* works as usual"
57 (primitive-eval '(let ()
61 (pass-if "define* works as usual (2)"
63 (primitive-eval '(let ()
67 (pass-if "currying once"
69 (primitive-eval '(let ()
73 (pass-if "currying twice"
75 (primitive-eval '(let ()
80 (pass-if "just a value"
82 (primitive-eval '(let ()