summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorArun Isaac2022-01-16 01:12:31 +0530
committerArun Isaac2022-01-16 12:24:31 +0530
commit6013af487f10e6fcde6ffbe0a1790afb32f20c5d (patch)
tree843556ae23102a2708aca48def7d6426536196b9 /build-aux
parent9da6d01e36b6cfa6e171dd4c778ab3687d766ed3 (diff)
downloadccwl-6013af487f10e6fcde6ffbe0a1790afb32f20c5d.tar.gz
ccwl-6013af487f10e6fcde6ffbe0a1790afb32f20c5d.tar.lz
ccwl-6013af487f10e6fcde6ffbe0a1790afb32f20c5d.zip
ccwl: Raise lambda** and syntax-lambda** errors as exceptions.
* ccwl/conditions.scm (&unrecognized-keyword-assertion, &invalid-keyword-arity-assertion, &invalid-positional-arguments-arity-assertion): New conditions. * ccwl/utils.scm: Import (rnrs conditions), (rnrs exceptions) and (ccwl conditions). (group-keyword-arguments): Raise &invalid-keyword-arity-assertion on error. (lambda**, syntax-lambda**): Raise &unrecognized-keyword-assertion, &invalid-keyword-arity-assertion and &invalid-positional-arguments-arity-assertion on error. * tests/utils.scm: Import (rnrs conditions), (rnrs exceptions), (srfi srfi-1) and (ccwl conditions). ("lambda** should raise an &unrecognized-keyword-assertion on unrecognized keywords in arguments with syntax objects as irritants"): Check for &unrecognized-keyword-assertion. ("Unrecognized keyword argument passed to lambda** should raise an &unrecognized-keyword-assertion condition", "Unary lambda** keyword argument passed multiple arguments should raise an &invalid-keyword-arity-assertion condition", "Wrong number of positional arguments to lambda** should raise an &invalid-positional-arguments-arity-assertion condition", "syntax-lambda** should raise an &unrecognized-keyword-assertion on unrecognized keywords in arguments", "Unrecognized keyword argument passed to syntax-lambda** should raise an &unrecognized-keyword-assertion condition with syntax objects as irritants", "Unary syntax-lambda** keyword argument passed multiple arguments should raise an &invalid-keyword-arity-assertion condition", "Wrong number of positional arguments to syntax-lambda** should raise an &invalid-positional-arguments-arity-assertion condition"): New tests.
Diffstat (limited to 'build-aux')
0 files changed, 0 insertions, 0 deletions