1
;; test-composer.scm: Unit tests for composer.scm
3
;;; Copyright (c) 2008-2011 uim Project http://code.google.com/p/uim/
5
;; All rights reserved.
7
;; Redistribution and use in source and binary forms, with or without
8
;; modification, are permitted provided that the following conditions
11
;; 1. Redistributions of source code must retain the above copyright
12
;; notice, this list of conditions and the following disclaimer.
13
;; 2. Redistributions in binary form must reproduce the above copyright
14
;; notice, this list of conditions and the following disclaimer in the
15
;; documentation and/or other materials provided with the distribution.
16
;; 3. Neither the name of authors nor the names of its contributors
17
;; may be used to endorse or promote products derived from this software
18
;; without specific prior written permission.
20
;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
21
;; IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
;; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
;; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
24
;; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
;; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
;; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27
;; PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28
;; LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
(require-extension (unittest))
34
(require "composer.scm")
36
(test-begin "composer")
37
(test-true (make-composer))
40
(test-begin "composer-base")
41
(test-true (make-composer-base '()))
44
(test-begin "composer-base (list-based)")
45
(test-true (make-list-based-composer-base '()))