cyclone/tests
yorickhardy 2b0f0601a6
Raise errors and objects with different tags (#557)
* 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
2025-02-23 16:23:16 -05:00
..
benchmarks WIP 2017-05-22 16:21:45 +00:00
debug Relocated test files 2019-02-15 17:56:26 -05:00
experimental Added notes 2018-10-05 17:32:28 -04:00
prof Initial file 2017-09-11 21:57:00 +00:00
test-lib Cleanup main directory 2016-07-04 21:11:58 -04:00
array1-test.scm Relocated 2017-06-07 21:36:40 +00:00
base.scm Raise errors and objects with different tags (#557) 2025-02-23 16:23:16 -05:00
bignum-test.scm Relocated 2017-06-07 21:36:40 +00:00
bytevector-tests.scm Relocated 2016-05-03 04:14:54 -04:00
c-compiler-options.scm Add header comment 2022-06-26 18:52:16 -04:00
define-c-testing.scm Relocated 2017-06-07 21:36:40 +00:00
let-syntax-298.scm WIP, testing 2017-12-07 12:57:38 -05:00
macro-hygiene.scm Relocated test library 2019-06-19 18:29:42 -04:00
match-tests.scm Relocated test library 2019-06-19 18:29:42 -04:00
srfi-28-tests.scm Relocated test library 2019-06-19 18:29:42 -04:00
srfi-60-tests.scm Relocated test library 2019-06-19 18:29:42 -04:00
srfi-121-tests.scm Relocated test library 2019-06-19 18:29:42 -04:00
srfi-128-162-tests.scm Issue #414 - Add tests for SRFI 128 / 162 2020-09-30 13:06:36 -04:00
srfi-143-tests.scm Relocated test library 2019-06-19 18:29:42 -04:00
test-shared-queue.scm Remove dead code 2019-07-02 13:27:00 -04:00
test.scm Added more unit tests 2021-07-30 17:11:43 -04:00
threading.scm Issue #279 - Add unit tests 2021-07-26 13:27:22 -04:00
unit-tests.scm Conditionally expand memory stream tests 2022-05-28 17:41:19 -07:00
when.scm WIP 2017-12-08 12:58:56 -05:00