summaryrefslogtreecommitdiff
path: root/test-suite/tests/r6rs-lists.test
Commit message (Collapse)AuthorAgeFilesLines
* Fix R6RS `fold-left' so the accumulator is the first argument.Ian Price2011-11-011-0/+26
| | | | | | | | | | | * module/rnrs/lists.scm (fold-left): New procedure. * module/rnrs/records/syntactic.scm (define-record-type): Fix to use corrected `fold-left'. * test-suite/tests/r6rs-lists.test: Add tests. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* Explicit definitions for `memp' and `assp' in `(rnrs list)'; the predicateJulian Graham2010-08-081-0/+32
argument to Guile's `member' and `assoc' functions has a different expected arity. * module/rnrs/lists.scm (memp, assp): Wrap the predicate function with a two-argument wrapper before calling Guile's underlying implemenation. * test-suite/Makefile.am: Add test-suite/tests/r6rs-lists.test to SCM_TESTS. * test-suite/tests/r6rs-lists.test: New file.