Idris2/tests
Zoe Stafford 1669fc351b
Refactor %builtin (#1803)
* Stub for future 'identity' optimisation
I plan to add this later, but I'm using for now for
NaturalToInteger and IntegerToNatural

* Refactor `%builtin`
fixes #1799

- automatically optimise all Natural shaped things
- NaturalToInteger and IntegerToNatural now use
  new `Identity` flag (internal use only for now)
  which signals the function is identity at runtime

* Use NaturalToInteger and IntegerToNatural for Nat and Fin
Also define show fin in terms of finToInteger, for speed

* Fix name handling for %builtin

* [ tests ] fixes + #1799

* remove %builtin from libs
Add back after next version

* Use resolved names where convenient
2021-08-03 14:19:17 +01:00
..
allbackends Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
base Merge pull request #1603 from ska80/remove-realpath-notes 2021-07-26 12:38:39 -07:00
chez Merge pull request #1721 from edwinb/AliasQli-master 2021-07-15 23:17:53 +01:00
codegen Add foldMap to Foldable (#1483) 2021-06-01 15:05:04 +01:00
contrib/json_001 Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
gambit/bitops001 Add Data.Bits to base (#1033) 2021-03-04 20:59:56 +00:00
ideMode Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
idris2 Refactor %builtin (#1803) 2021-08-03 14:19:17 +01:00
node Add break in each case alt in js backend (#1796) 2021-07-30 07:16:23 +01:00
prelude Add tests for Nat ranges and fix bad range [1,2..1] behaviour. (#1794) 2021-07-28 06:52:59 +01:00
racket Patch CVs and sleep in Racket (#1059) 2021-03-15 13:43:12 +00:00
refc Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
templates Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
ttimp Bring #1719 up to date with latest changes 2021-07-15 22:04:49 +01:00
typedd-book Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
vmcode/basic001 Move rm -rf to the beginning of the test 2021-07-13 22:54:53 +01:00
Main.idr Add break in each case alt in js backend (#1796) 2021-07-30 07:16:23 +01:00
Makefile [ cleanup ] Test.Golden (#1526) 2021-06-21 17:30:11 +01:00
README.md Test templates (#585) 2020-11-27 15:40:02 +00:00
tests.ipkg Set PREFIX for tests 2021-04-19 11:23:58 +01:00

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 for TTImp.
  • make test only=idris2/basic001 will run a specific test.

Templates for common test instances can be found in the templates folder.