mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-15 14:23:32 +03:00
9865765d1d
* Move Context into its own file Just the core definition - this is so that we have access to it in Core.Core, for inclusion in error messages, to save normalisation of terms in errors until we actually show them. * Normalise errors on display, not when they arise This can save a lot of time in ambiguity resolution if the errors are complicated, because the errors might never be displayed if it's in an abandoned branch. This involves lifting 'Context' out of Core.Context, because we need to store it in Error, which is needed by Core, which in turn is needed in Core.Context. Also moved a couple of test caes from ttimp to idris2, so that the errors get rendered properly and won't need updating unnecessarily. In fact all of the ttimp tests - which were just part of the initial scaffolding - are probably now subsumed by the idris2 tests. * Add new coverage001 test files |
||
---|---|---|
.. | ||
allbackends | ||
base | ||
chez | ||
codegen | ||
contrib | ||
gambit/bitops001 | ||
ideMode | ||
idris2 | ||
node | ||
prelude | ||
racket | ||
refc | ||
templates | ||
ttimp | ||
typedd-book | ||
vmcode/basic001 | ||
Main.idr | ||
Makefile | ||
README.md | ||
tests.ipkg |
Tests
Note: The commands listed in this section should be run from the repository's root folder.
Run all tests: make test
To run only a subset of the tests use: make test only=NAME
. NAME
is matched against the path to each test case.
Examples:
make test only=chez
will run all Chez Scheme tests.make test only=ttimp/basic
will run all basic tests forTTImp
.make test only=idris2/basic001
will run a specific test.
Templates for common test instances can be found in the templates
folder.