vile / scheme / testdata / chibi-r5rs-notes.txt
19 lines · 17 sloc · 1.27 KB · 76646891b77a3d5c6af4a1e42b122cd61dc1654b
Raw
Upstream: https://github.com/ashinn/chibi-scheme/blob/c9194225f97b5a4a6d3638c282fe3f14a76427a4/tests/r5rs-tests.scm
Original SHA256: a47ffb6c2ad1bd25a3f1dd1629ba33394465a1b986e496ade9c5758db2ab8e40
Copyright (c) 2009-2021 Alex Shinn. BSD license in CHIBI-COPYING.

The body is preserved with these adaptations:
- Use a portable, silent test harness in r5rs_examples_test.v instead of
  nonstandard call-with-output-string and flush-output procedures.
- Expect lowercase for (symbol->string 'Martin), matching Vile's documented
  case normalization. The upstream expectation assumes case-sensitive reading.
- Mark five later-language extensions skip-extension: lexical rebinding of ...
  disabling repetition; definition-only let-syntax/letrec-syntax groups spliced
  into an enclosing body; a custom ellipsis identifier; and a repeated pattern
  followed by fixed elements. R5RS 4.3.2 reserves ... and puts pattern repetition
  at the end, and R5RS 5.2.2 only specifies begin definition splicing. These
  exclusions preserve the original forms so the scope of adaptation is visible.

The 184 remaining examples are all executed. Their source expressions and
expected values are otherwise unchanged. Skipped forms are not passed tests.
R5RS reference: https://people.csail.mit.edu/jaffer/r5rs_6.html