Define expect-error as an alias for assert-error.
authorTaylor R Campbell <campbell@mumble.net>
Tue, 27 Nov 2018 02:25:20 +0000 (02:25 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Tue, 27 Nov 2018 02:25:20 +0000 (02:25 +0000)
commit099108f7e11cd9becf572ae2f8b66c2059d1b8e1
treeddffcfd61c0f84d1a832aba0bedf3bdc1b623d54
parent297cf27846f944fd03dc1c0199d0192aa43084ba
Define expect-error as an alias for assert-error.

The difference is in intent: expect-error means something is broken,
and the test signals an error because of a bug; assert-error means
the correct behaviour is to signal an error.

Pass expect-error or expect-failure as procedures, not as symbols
representing them, throughout the test suite.

Now we can find documented bugs by grepping for expect-error and
expect-failure.
tests/microcode/test-flonum-except.scm
tests/runtime/test-arith.scm
tests/runtime/test-numpar.scm
tests/runtime/test-readwrite.scm
tests/runtime/test-syntax.scm
tests/unit-testing.scm