1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-07-05 17:20:18 +02:00
guile/test-suite/tests
Andy Wingo 2053592214 Allow mixed local definitions and expressions
This change to the expander allows mixed local definitions and
expressions.  The expansion turns:

  (let () (a) (define (b) 42) (b) (b))

into:

  (let ()
    (letrec* ((t0 (begin (a) (if #f #f)))
              (b (lambda () 42)))
      (b)))

Which is to say, expressions that precede definitions are expanded as
definitions of a temporary via (begin EXP (if #f #f)).

* module/ice-9/psyntax.scm (expand-body): Allow mixed definitions and
  expressions.
* module/ice-9/psyntax-pp.scm: Regenerate.
* test-suite/tests/syntax.test: Add a couple tests and update for new
  error messages.
2019-08-25 16:44:07 +02:00
..
00-initial-env.test
00-repl-server.test Only run tests that require fork if it is provided 2017-04-04 07:33:41 -07:00
00-socket.test Only run tests that require fork if it is provided 2017-04-04 07:33:41 -07:00
alist.test Resolve unresolved alist test cases 2017-03-14 16:04:14 +01:00
and-let-star.test Update and-let-star.test 2016-06-21 13:40:02 +02:00
array-map.test Support non-zero lower bounds in array-slice-for-each 2017-10-31 13:23:17 +01:00
arrays.test Fix bitvectors and non-zero lower bound arrays in truncated-print 2017-10-31 13:23:44 +01:00
asyncs.test Check for working profiling and virtual itimers 2017-03-06 23:06:12 -08:00
atomic.test Compiler support for atomics 2016-09-06 12:18:35 +02:00
bit-operations.test
bitvectors.test Fix bit-count* bug 2014-07-04 16:52:29 +02:00
brainfuck.test move (test-suite lib) to lower dir; cleans up uninstalled paths. 2012-04-23 21:46:06 +02:00
bytevectors.test Fix list validation of *list->bytevector procedures. 2019-05-23 16:01:13 +02:00
c-api.test tests: Use NUL instead of /dev/null on MinGW. 2014-06-11 14:36:55 +02:00
chars.test String ports use UTF-8; ignore %default-port-encoding. 2013-08-07 01:22:22 -04:00
coding.test Make temporary file in coding.test work on MS-Windows. 2014-08-13 18:41:15 +03:00
common-list.test
compiler.test Add tests for type inferencing for 'nil?' and 'null?' predicates. 2019-05-23 16:59:54 +02:00
continuations.test
control.test Nonlocal prompt returns cause all effects 2017-03-13 22:20:16 +01:00
coverage.test Fix coverage test for top-level binding optimization 2019-08-18 22:27:12 +02:00
cross-compilation.test Merge branch 'stable-2.0' 2014-09-30 03:50:47 -04:00
curried-definitions.test
dwarf.test Rename "RTL" to "bytecode" 2013-12-02 21:31:47 +01:00
ecmascript.test Fix tree-il code generation for ECMAscript `new' expression. 2016-10-25 23:39:30 +02:00
elisp-compiler.test Fix test suite for constant literals change 2017-04-19 09:26:11 +02:00
elisp-reader.test
elisp.test test-suite: eq-ness of numbers, characters is unspecified 2013-03-01 11:03:22 -05:00
encoding-escapes.test
encoding-iso88591.test Improve handling of locales in the test suite. 2014-02-07 21:49:35 -05:00
encoding-iso88597.test Improve handling of locales in the test suite. 2014-02-07 21:49:35 -05:00
encoding-utf8.test Improve handling of locales in the test suite. 2014-02-07 21:49:35 -05:00
eval-string.test
eval.test Better eval+promise+gc test 2017-03-14 16:04:14 +01:00
exceptions.test Avoid stacks in dynamically-bound values 2017-02-07 09:57:55 +01:00
fdes-finalizers.test Add file descriptor finalizers 2016-08-30 23:35:10 +02:00
filesys.test 'basename' correctly handles "/" and "//". 2019-06-04 21:24:02 +02:00
fluids.test Fix new thread-local fluids test 2017-03-07 21:35:52 +01:00
foreign.test Can't recursively search DLLs with FFI on Cygwin 2017-03-05 12:45:54 -08:00
format.test i18n: 'number->locale-string' guesses the minimum number of decimals. 2017-03-01 21:16:49 +01:00
fractions.test Fix incorrect rationalize tests. 2013-07-21 08:09:46 -04:00
ftw.test test-suite: Skip EACCES' test of file-system-fold' when run as root. 2012-12-10 23:41:06 +01:00
future.test futures: Limit the number of nested futures on the same stack. 2013-03-27 18:09:49 +01:00
gc.test tests: Add more `maybe-gc-flakiness'. 2013-03-22 22:24:27 +01:00
getopt-long.test
goops.test Replace "pr" struct fields with "pw" fields 2017-09-23 15:33:02 +02:00
guardians.test Deprecate vector-ref, vector-length, vector-set! on weak vectors 2014-02-07 12:42:44 +01:00
hash.test Test for deleted weak pairs in hash-for-each. 2014-03-12 02:36:35 -04:00
hooks.test
i18n.test Strings, i18n: Limit the use of alloca to approximately 8 kilobytes. 2019-05-23 17:51:36 +02:00
iconv.test U+FFFD is the input substitution character 2016-05-16 10:48:35 +02:00
import.test
interp.test
keywords.test
linker.test Fix linker.test 2019-02-22 15:01:01 +01:00
list.test Improve error reporting in 'append!' 2012-10-06 06:04:29 -04:00
load.test primitive-load returns the value(s) of the last expression 2012-01-09 16:15:00 +01:00
match.test move (test-suite lib) to lower dir; cleans up uninstalled paths. 2012-04-23 21:46:06 +02:00
match.test.upstream Update (ice-9 match) to include selected bug fixes from upstream. 2019-05-23 17:14:26 +02:00
modules.test Declare module exports before loading imports 2017-02-28 11:49:15 +01:00
multilingual.nottest
net-db.test tests: Have `getaddrinfo' test work for Darwin 8. 2012-02-03 10:30:52 +01:00
numbers.test In 'ash' and 'round-ash', handle right shift count of LONG_MIN. 2019-05-23 16:09:45 +02:00
optargs.test Better errors for odd-length keyword args 2017-02-28 22:01:20 +01:00
options.test
pairs.test
parameters.test
peg.bench PEG Renames 2013-01-16 10:11:49 +01:00
peg.test PEG Renames 2013-01-16 10:11:49 +01:00
peval.test Update peval tests for fix-letrec 2019-08-13 15:07:57 +02:00
poe.test
popen-child.scm
popen.test Unconditionally build and test the ice-9/popen module. 2014-07-03 19:20:00 +03:00
ports.test Don't mutate read-only string in ports test 2019-05-23 17:16:08 +02:00
posix.test Fix binary output on files created by mkstemp! 2019-05-23 17:30:33 +02:00
print.test Fix bitvectors and non-zero lower bound arrays in truncated-print 2017-10-31 13:23:44 +01:00
procprop.test remove @apply memoizer 2013-06-27 22:02:35 +02:00
procs.test
q.test
r4rs.test Placate a number of `syntax-check' verifications. 2012-01-05 23:38:10 +01:00
r5rs_pitfall.test Rewrite boot-9 map to be recursive and pure 2014-05-01 21:17:28 +02:00
r6rs-arithmetic-bitwise.test Optimize R6RS bitwise operators. 2013-07-21 10:00:48 -04:00
r6rs-arithmetic-fixnums.test Fix fixnum-range changes in R6RS fixnum bitops 2016-06-21 09:32:30 +02:00
r6rs-arithmetic-flonums.test Fix numerator and denominator handling of signed zeroes and infinities. 2013-08-09 06:09:56 -04:00
r6rs-base.test R6RS `string-for-each' should accept multiple string arguments 2012-11-22 22:26:16 +01:00
r6rs-conditions.test
r6rs-control.test
r6rs-enums.test
r6rs-eval.test
r6rs-exceptions.test Convert guile exceptions to R6RS conditions in R6RS exception handlers. 2013-11-18 00:35:42 -05:00
r6rs-files.test Untabify some test files. 2014-07-03 21:02:23 +03:00
r6rs-hashtables.test (rnrs hashtables): Hash functions of eq? and eqv? hashtables 2016-06-21 09:48:36 +02:00
r6rs-lists.test
r6rs-ports.test Avoid 'with-latin1-locale' in binary I/O tests. 2019-05-23 17:48:55 +02:00
r6rs-records-inspection.test
r6rs-records-procedural.test
r6rs-records-syntactic.test
r6rs-unicode.test
random.test Support general arrays in random:hollow-sphere! 2017-10-31 13:30:01 +01:00
rdelim.test U+FFFD is the input substitution character 2016-05-16 10:48:35 +02:00
reader.test Heed the reader settings implied by #!r6rs 2016-05-22 19:40:37 +02:00
receive.test
records.test
regexp.test Merge commit '0ce224594a' 2014-02-08 14:48:56 +01:00
rnrs-libraries.test Fix R6RS imports of interfaces that use interfaces 2016-04-14 12:35:55 +02:00
rnrs-test-a.scm move (test-suite lib) to lower dir; cleans up uninstalled paths. 2012-04-23 21:46:06 +02:00
rtl-compilation.test Rename "RTL" to "bytecode" 2013-12-02 21:31:47 +01:00
rtl.test Fix RTL tests for recent arity change 2019-06-07 17:10:32 +02:00
sandbox.test Add sandboxed evaluation facility 2017-04-18 21:27:45 +02:00
session.test Fix procedure-arguments on RTL programs, and tweak session.test 2013-11-08 13:29:03 +01:00
signals.test Disable test for current value of setitimer on Cygwin 2019-05-23 17:32:17 +02:00
sort.test Fix sort, sort! for arrays with nonzero lower bound 2017-10-31 13:23:17 +01:00
srcprop.test Add tests to verify that 'read' sets source properties when appropriate 2012-02-15 12:23:12 -05:00
srfi-1.test SRFI-1 'length+' raises an error unless passed a proper or circular list. 2014-06-01 19:19:40 -04:00
srfi-2.test Add SRFI-2 (and-let*) test suite. 2016-06-21 13:40:01 +02:00
srfi-4.test Deprecate general "uniform-vector" interface 2014-02-08 14:28:07 +01:00
srfi-6.test Make SRFI-6 string ports Unicode-capable. 2012-06-20 15:50:27 +02:00
srfi-9.test Adapt srfi-9.test to error reporting improvements; update copyright dates. 2013-09-12 18:14:54 -04:00
srfi-10.test
srfi-11.test
srfi-13.test Fix 'string-copy!' to work properly with overlapping src/dest. 2014-01-08 21:42:24 -05:00
srfi-14.test Improve handling of locales in the test suite. 2014-02-07 21:49:35 -05:00
srfi-17.test
srfi-18.test srfi-18: 'thread-sleep!' timeout-as-a-number is relative. 2018-08-07 11:40:40 +02:00
srfi-19.test Fix tests for SRFI-19 date->string ~N 2019-05-23 17:14:29 +02:00
srfi-26.test
srfi-27.test
srfi-31.test Rewrite SRFI-31 in terms of `syntax-rules'. 2012-09-11 23:39:32 +02:00
srfi-34.test
srfi-35.test test-suite: eq-ness of numbers, characters is unspecified 2013-03-01 11:03:22 -05:00
srfi-37.test SRFI-37: Fix infinite loop when processing short option with no required arg. 2013-03-25 23:25:57 +01:00
srfi-38.test
srfi-39.test
srfi-41.test Add SRFI-41. 2013-03-27 13:37:45 -04:00
srfi-42.test Remove stale test file. 2012-01-30 20:57:42 +01:00
srfi-43.test Implement SRFI-43 Vector Library. 2014-02-01 01:19:49 -05:00
srfi-45.test SRFI-45: add promise? predicate. 2013-03-26 21:22:11 -04:00
srfi-60.test SRFI-60: Reimplement 'rotate-bit-field' on inums to be more portable. 2014-03-11 21:39:26 -04:00
srfi-64-test.scm Skip tests that don't work under letrectification 2019-08-18 22:27:12 +02:00
srfi-64.test Fix srfi-64.test for #:select borkage. The irony... 2016-06-21 22:46:03 +02:00
srfi-67.test Placate a number of `syntax-check' verifications. 2012-01-05 23:38:10 +01:00
srfi-69.test
srfi-71.test tests: Add SRFI-71 test. 2018-08-07 12:09:06 +02:00
srfi-88.test
srfi-98.test
srfi-105.test String ports use UTF-8; ignore %default-port-encoding. 2013-08-07 01:22:22 -04:00
srfi-111.test Implement SRFI-111 Boxes. 2014-01-24 10:50:51 -05:00
statprof.test Check for working profiling and virtual itimers 2017-03-06 23:06:12 -08:00
streams.test
strings.test Strings, i18n: Limit the use of alloca to approximately 8 kilobytes. 2019-05-23 17:51:36 +02:00
structs.test Replace "pr" struct fields with "pw" fields 2017-09-23 15:33:02 +02:00
suspendable-ports.test Update port documentation, rename sports to suspendable ports 2016-06-09 10:50:32 +02:00
sxml-match-tests.ss
sxml.fold.test
sxml.match.test move (test-suite lib) to lower dir; cleans up uninstalled paths. 2012-04-23 21:46:06 +02:00
sxml.simple.test add #:doctype-handler to xml->sxml 2013-01-30 15:29:18 +01:00
sxml.ssax.test
sxml.transform.test
sxml.xpath.test
symbols.test
syncase.test Fix infinite loop in expander 2015-02-13 16:43:01 +01:00
syntax.test Allow mixed local definitions and expressions 2019-08-25 16:44:07 +02:00
texinfo.docbook.test
texinfo.html.test Fix texinfo->html for @acronym, @itemize 2016-06-24 17:09:39 +02:00
texinfo.serialize.test Texinfo serialization: add braces when needed 2016-10-11 22:08:03 +02:00
texinfo.string-utils.test texinfo: Add whitespace after periods. 2013-03-22 22:05:23 +01:00
texinfo.test texinfo: fix @url{@@} parsing 2014-11-09 15:56:33 +00:00
threads.test Back to simple unlock-mutex 2016-11-05 11:50:31 +01:00
time.test 'strftime' and 'strptime' honor the locale encoding. 2019-06-30 21:31:36 +02:00
tree-il.test Add "mod" field to tree-il toplevel ref, set, define 2019-08-18 22:27:12 +02:00
types.test types: Recognize 'scm_t_port_type' and decode port type name. 2018-08-07 12:13:45 +02:00
unicode.test Add (ice-9 unicode) module 2014-09-29 21:54:14 -04:00
vectors.test
version.test
vlist.test Merge remote-tracking branch 'origin/stable-2.0' 2013-03-28 05:09:53 -04:00
vm.test 'load-thunk-from-memory' reports the correct error. 2018-08-07 11:34:35 +02:00
weaks.test Merge commit '9b5da400dd' 2014-02-07 15:36:06 +01:00
web-client.test Generic port facility provides buffering uniformly 2016-04-06 19:21:44 +02:00
web-http.test Revert "web: Add support for HTTP header continuation lines." 2019-06-24 11:33:13 -04:00
web-request.test web: add support for URI-reference 2017-05-21 13:42:29 +02:00
web-response.test web: Fix 'close' method of delimited input ports. 2016-05-22 19:48:47 +02:00
web-server.test tests: Add (web server) test. 2019-06-30 17:20:54 +02:00
web-uri.test Make URI handling locale independent. 2019-06-04 21:24:02 +02:00