mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Replace SRFI-64 with a new implementation.
The bundled (reference) implementation was of somewhat mixed quality and it failed to follow standard in multiple places. This commit replaces it with a new one, written from scratch to follow the standard as close as possible. * module/srfi/srfi-64/testing.scm: Delete file. * module/srfi/srfi-64.scm: Replace with new implementation. * am/bootstrap.am (srfi/srfi-64.go): Remove extra dependencies. (NOCOMP_SOURCES): Remove srfi/srfi-64/testing.scm. * test-suite/tests/srfi-64-test.scm ("8.6.1. Simple (form 1) test-apply") ("8.6.2. Simple (form 2) test-apply"): Adjust tests to follow the specification. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
08e26836f1
commit
ad90f45a8c
4 changed files with 978 additions and 1083 deletions
|
@ -54,7 +54,6 @@ COMPILE = $(AM_V_GUILEC) \
|
|||
|
||||
ice-9/boot-9.go: ice-9/boot-9.scm ice-9/quasisyntax.scm ice-9/r6rs-libraries.scm ice-9/r7rs-libraries.scm ice-9/read.scm
|
||||
ice-9/match.go: ice-9/match.scm ice-9/match.upstream.scm
|
||||
srfi/srfi-64.go: srfi/srfi-64.scm srfi/srfi-64/testing.scm
|
||||
|
||||
# Keep this rule in sync with that in `am/guilec'.
|
||||
ice-9/psyntax-pp.go: ice-9/psyntax.scm ice-9/psyntax-pp.scm
|
||||
|
@ -438,7 +437,6 @@ NOCOMP_SOURCES = \
|
|||
ice-9/r7rs-libraries.scm \
|
||||
ice-9/quasisyntax.scm \
|
||||
srfi/srfi-42/ec.scm \
|
||||
srfi/srfi-64/testing.scm \
|
||||
srfi/srfi-67/compare.scm \
|
||||
system/base/lalr.upstream.scm \
|
||||
system/repl/describe.scm \
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -716,7 +716,7 @@
|
|||
|
||||
(test-begin "8.6. test-apply")
|
||||
(test-equal "8.6.1. Simple (form 1) test-apply"
|
||||
'(("w" "p" "v") () () () ("x") (3 0 0 0 1))
|
||||
'(("w" "p" "v") () () () () (3 0 0 0 0))
|
||||
(triv-runner
|
||||
(lambda ()
|
||||
(test-begin "a")
|
||||
|
@ -733,7 +733,7 @@
|
|||
(test-assert "v" #t))))
|
||||
|
||||
(test-equal "8.6.2. Simple (form 2) test-apply"
|
||||
'(("w" "p" "v") () () () ("x") (3 0 0 0 1))
|
||||
'(("w" "p" "v") () () () () (3 0 0 0 0))
|
||||
(triv-runner
|
||||
(lambda ()
|
||||
(test-begin "a")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue