mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 13:19:17 +02:00
* tests/base.scm: add two tests for issue #556 The two tests are adapted from issue #556 (originally from r7rs). The tests currently fail because errors and raised objects are treated in the same way. * Use different tags for raised objects and raised errors The behaviour for raising an error (error message irritants) and objects (raise object) are different in r7rs. So tag error objects differently, and adjust the raised object handling to handle the raised object instead of a list containing the raised object. This should resolve issue #556. * runtime: use the correct string length for comparison Fix for the pull request adressing issue #556. * runtime: distinguish exceptions and errors in default handler * repl: use error-object? to decide whether an error or an exception was raised This makes error messages a bit more informative. Also, if error objects become a distinct type, then the repl implementation will continue to be correct. The (deleted) second cond clause seemed to be bit redundant - I am not sure what the original intent was. * tests/base.scm: revert accidental deletion of else clause * Display exceptions as errors for consistency |
||
---|---|---|
.. | ||
benchmarks | ||
debug | ||
experimental | ||
prof | ||
test-lib | ||
array1-test.scm | ||
base.scm | ||
bignum-test.scm | ||
bytevector-tests.scm | ||
c-compiler-options.scm | ||
define-c-testing.scm | ||
let-syntax-298.scm | ||
macro-hygiene.scm | ||
match-tests.scm | ||
srfi-28-tests.scm | ||
srfi-60-tests.scm | ||
srfi-121-tests.scm | ||
srfi-128-162-tests.scm | ||
srfi-143-tests.scm | ||
test-shared-queue.scm | ||
test.scm | ||
threading.scm | ||
unit-tests.scm | ||
when.scm |