1
1
mirror of https://github.com/idris-lang/Idris2.git synced 2024-12-20 10:02:03 +03:00
Idris2/tests/idris2
Edwin Brady c17d4ff0a5 Look inside case blocks in conversion check
This is quite fiddly as it the blocks might be in different contexts so
we need to keep track of which variables correspond in the scrutinees of
the blocks. Once that's done, check the terms at the leaves convert,
then check the corresponding variables convert.

This may not be perfect yet, because we only look at case scrutinees to
find correspondence. It might also be a bit slower than it could be, but
at least these checks are quite rare.

Fixes  and maybe some others?
2020-06-04 18:21:44 +01:00
..
basic001 Add test script 2020-05-19 18:25:18 +01:00
basic002 Add test script 2020-05-19 18:25:18 +01:00
basic003 Add visibility rules on types 2020-05-30 17:03:15 +01:00
basic004 Add test script 2020-05-19 18:25:18 +01:00
basic005 Add test script 2020-05-19 18:25:18 +01:00
basic006 Add test script 2020-05-19 18:25:18 +01:00
basic007 Add test script 2020-05-19 18:25:18 +01:00
basic008 Add test script 2020-05-19 18:25:18 +01:00
basic009 Add test script 2020-05-19 18:25:18 +01:00
basic010 Add test script 2020-05-19 18:25:18 +01:00
basic011 All functions now need to be covering by default 2020-05-24 19:58:20 +01:00
basic012 Add test script 2020-05-19 18:25:18 +01:00
basic013 Add test script 2020-05-19 18:25:18 +01:00
basic014 Add test script 2020-05-19 18:25:18 +01:00
basic015 Add test script 2020-05-19 18:25:18 +01:00
basic016 Add test script 2020-05-19 18:25:18 +01:00
basic017 Add test script 2020-05-19 18:25:18 +01:00
basic018 All functions now need to be covering by default 2020-05-24 19:58:20 +01:00
basic019 Allow _ for names in pi binders 2020-05-25 13:14:51 +01:00
basic020 Add test script 2020-05-19 18:25:18 +01:00
basic021 Add test script 2020-05-19 18:25:18 +01:00
basic022 Add test script 2020-05-19 18:25:18 +01:00
basic023 Add test script 2020-05-19 18:25:18 +01:00
basic024 Add test script 2020-05-19 18:25:18 +01:00
basic025 Add test script 2020-05-19 18:25:18 +01:00
basic026 Add test script 2020-05-19 18:25:18 +01:00
basic027 Add test script 2020-05-19 18:25:18 +01:00
basic028 Add test script 2020-05-19 18:25:18 +01:00
basic029 Add test script 2020-05-19 18:25:18 +01:00
basic030 Allow _ for names in pi binders 2020-05-25 13:14:51 +01:00
basic031 Add test script 2020-05-19 18:25:18 +01:00
basic032 Add test script 2020-05-19 18:25:18 +01:00
basic033 Add test script 2020-05-19 18:25:18 +01:00
basic034 Add test script 2020-05-19 18:25:18 +01:00
basic035 Fix build 2020-05-25 16:45:33 +01:00
basic036 Allow _ for names in pi binders 2020-05-25 13:14:51 +01:00
basic037 Add test script 2020-05-19 18:25:18 +01:00
basic038 Add test script 2020-05-19 18:25:18 +01:00
basic039 Add AllGuarded flag for functions 2020-05-22 17:27:18 +01:00
basic040 Add test script 2020-05-19 18:25:18 +01:00
coverage001 All functions now need to be covering by default 2020-05-24 19:58:20 +01:00
coverage002 All functions now need to be covering by default 2020-05-24 19:58:20 +01:00
coverage003 All functions now need to be covering by default 2020-05-24 19:58:20 +01:00
coverage004 All functions now need to be covering by default 2020-05-24 19:58:20 +01:00
coverage005 Fix import loading 2020-05-27 15:49:03 +01:00
coverage006 Better checking for empty types 2020-05-23 11:03:54 +01:00
coverage007 [ typo ] in test coverage007 2020-05-23 13:38:33 +01:00
coverage008 Add Bits primitives 2020-06-01 11:48:03 +01:00
coverage009 Warn on detecting unreachable patterns 2020-05-25 00:16:49 +01:00
coverage010 Add Bits primitives 2020-06-01 11:48:03 +01:00
error001 Add test script 2020-05-19 18:25:18 +01:00
error002 Add test script 2020-05-19 18:25:18 +01:00
error003 Add test script 2020-05-19 18:25:18 +01:00
error004 Add test script 2020-05-19 18:25:18 +01:00
error005 Add test script 2020-05-19 18:25:18 +01:00
error006 Add test script 2020-05-19 18:25:18 +01:00
error007 Add test script 2020-05-19 18:25:18 +01:00
error008 Add test script 2020-05-19 18:25:18 +01:00
error009 Add test script 2020-05-19 18:25:18 +01:00
error010 Add test script 2020-05-19 18:25:18 +01:00
import001 Add test script 2020-05-19 18:25:18 +01:00
import002 Fix import loading 2020-05-27 15:49:03 +01:00
import003 Add test script 2020-05-19 18:25:18 +01:00
import004 Add test script 2020-05-19 18:25:18 +01:00
interactive001 Add test script 2020-05-19 18:25:18 +01:00
interactive002 Add test script 2020-05-19 18:25:18 +01:00
interactive003 Add test script 2020-05-19 18:25:18 +01:00
interactive004 Add test script 2020-05-19 18:25:18 +01:00
interactive005 Add test script 2020-05-19 18:25:18 +01:00
interactive006 Add test script 2020-05-19 18:25:18 +01:00
interactive007 Add test script 2020-05-19 18:25:18 +01:00
interactive008 Add test script 2020-05-19 18:25:18 +01:00
interactive009 Add test script 2020-05-19 18:25:18 +01:00
interactive010 Add test script 2020-05-19 18:25:18 +01:00
interactive011 Add test script 2020-05-19 18:25:18 +01:00
interactive012 Add test script 2020-05-19 18:25:18 +01:00
interactive013 [ fix ] preserve spacing during update 2020-05-23 14:41:44 +01:00
interface001 All functions now need to be covering by default 2020-05-24 19:58:20 +01:00
interface002 Add test script 2020-05-19 18:25:18 +01:00
interface003 Add test script 2020-05-19 18:25:18 +01:00
interface004 Add test script 2020-05-19 18:25:18 +01:00
interface005 Add test script 2020-05-19 18:25:18 +01:00
interface006 Add test script 2020-05-19 18:25:18 +01:00
interface007 Add test script 2020-05-19 18:25:18 +01:00
interface008 Add test script 2020-05-19 18:25:18 +01:00
interface009 Add test script 2020-05-19 18:25:18 +01:00
interface010 Add test script 2020-05-19 18:25:18 +01:00
interface011 Add test script 2020-05-19 18:25:18 +01:00
interface012 Add test script 2020-05-19 18:25:18 +01:00
interface013 Add test script 2020-05-19 18:25:18 +01:00
interface014 Add test script 2020-05-19 18:25:18 +01:00
interface015 Add test script 2020-05-19 18:25:18 +01:00
interpreter001 Add test script 2020-05-19 18:25:18 +01:00
lazy001 Add test script 2020-05-19 18:25:18 +01:00
linear001 Add test script 2020-05-19 18:25:18 +01:00
linear002 Add test script 2020-05-19 18:25:18 +01:00
linear003 Add test script 2020-05-19 18:25:18 +01:00
linear004 Allow _ for names in pi binders 2020-05-25 13:14:51 +01:00
linear005 Add test script 2020-05-19 18:25:18 +01:00
linear006 Add test script 2020-05-19 18:25:18 +01:00
linear007 Add test script 2020-05-19 18:25:18 +01:00
linear008 Add test script 2020-05-19 18:25:18 +01:00
linear009 Allow _ for names in pi binders 2020-05-25 13:14:51 +01:00
literate001 Add test script 2020-05-19 18:25:18 +01:00
literate002 Add test script 2020-05-19 18:25:18 +01:00
literate003 Add test script 2020-05-19 18:25:18 +01:00
literate004 Add test script 2020-05-19 18:25:18 +01:00
literate005 Add test script 2020-05-19 18:25:18 +01:00
literate006 Add test script 2020-05-19 18:25:18 +01:00
literate007 Add test script 2020-05-19 18:25:18 +01:00
literate008 Add test script 2020-05-19 18:25:18 +01:00
literate009 Add test script 2020-05-19 18:25:18 +01:00
literate010 Add test script 2020-05-19 18:25:18 +01:00
literate011 Add test script 2020-05-19 18:25:18 +01:00
literate012 Add test script 2020-05-19 18:25:18 +01:00
params001 Add test script 2020-05-19 18:25:18 +01:00
perf001 Add test script 2020-05-19 18:25:18 +01:00
perf002 Add test script 2020-05-19 18:25:18 +01:00
perf003 Add test script 2020-05-19 18:25:18 +01:00
perf004 Add visibility rules on types 2020-05-30 17:03:15 +01:00
perror001 Add test script 2020-05-19 18:25:18 +01:00
perror002 Add test script 2020-05-19 18:25:18 +01:00
perror003 Add test script 2020-05-19 18:25:18 +01:00
perror004 Add test script 2020-05-19 18:25:18 +01:00
perror005 Add test script 2020-05-19 18:25:18 +01:00
perror006 Add test script 2020-05-19 18:25:18 +01:00
pkg001 Add test script 2020-05-19 18:25:18 +01:00
pkg002 Add test script 2020-05-19 18:25:18 +01:00
pkg003 Allow cli given option overriding for ipkg cmds. 2020-05-26 14:41:09 +01:00
real001 Add test script 2020-05-19 18:25:18 +01:00
real002 Add visibility rules on types 2020-05-30 17:03:15 +01:00
record001 Add test script 2020-05-19 18:25:18 +01:00
record002 Add test script 2020-05-19 18:25:18 +01:00
record003 Add test script 2020-05-19 18:25:18 +01:00
record004 Finish tests 2020-05-19 20:06:37 +01:00
reflection001 Add syntax for quoting names 2020-06-01 13:39:18 +01:00
reflection002 Reduce amount of normalisation in elab scripts 2020-06-03 00:22:03 +01:00
reflection003 In reflection, check now takes a concrete type 2020-06-02 22:41:37 +01:00
reflection004 In reflection, check now takes a concrete type 2020-06-02 22:41:37 +01:00
reflection005 In reflection, check now takes a concrete type 2020-06-02 22:41:37 +01:00
reflection006 In reflection, check now takes a concrete type 2020-06-02 22:41:37 +01:00
reflection007 Add quote operation to Elab 2020-06-02 23:36:20 +01:00
reflection008 Slightly neater reflection008 test 2020-06-03 09:25:09 +01:00
reg001 Add test script 2020-05-19 18:25:18 +01:00
reg002 Add test script 2020-05-19 18:25:18 +01:00
reg003 Fix import loading 2020-05-27 15:49:03 +01:00
reg004 Add test script 2020-05-19 18:25:18 +01:00
reg005 Add test script 2020-05-19 18:25:18 +01:00
reg006 Add test script 2020-05-19 18:25:18 +01:00
reg007 Add test script 2020-05-19 18:25:18 +01:00
reg008 Add visibility rules on types 2020-05-30 17:03:15 +01:00
reg009 Add test script 2020-05-19 18:25:18 +01:00
reg010 Add test script 2020-05-19 18:25:18 +01:00
reg011 Add test script 2020-05-19 18:25:18 +01:00
reg012 Add test script 2020-05-19 18:25:18 +01:00
reg013 Add test script 2020-05-19 18:25:18 +01:00
reg014 Add test script 2020-05-19 18:25:18 +01:00
reg015 Add test script 2020-05-19 18:25:18 +01:00
reg016 Add test script 2020-05-19 18:25:18 +01:00
reg017 Allow _ for names in pi binders 2020-05-25 13:14:51 +01:00
reg018 Add test script 2020-05-19 18:25:18 +01:00
reg019 Add test script 2020-05-19 18:25:18 +01:00
reg020 Make sure literals are normalise on LHS 2020-05-23 11:48:15 +01:00
reg021 Look inside case blocks in conversion check 2020-06-04 18:21:44 +01:00
total001 All functions now need to be covering by default 2020-05-24 19:58:20 +01:00
total002 Add test script 2020-05-19 18:25:18 +01:00
total003 All functions now need to be covering by default 2020-05-24 19:58:20 +01:00
total004 Add test script 2020-05-19 18:25:18 +01:00
total005 Add test script 2020-05-19 18:25:18 +01:00
total006 Evaluate with tcinline under Delay 2020-05-22 13:30:07 +01:00
total007 Forgot to add some test files! 2020-05-21 17:22:30 +01:00
total008 Skip totality check on case blocks and MNs 2020-05-28 15:32:46 +01:00
with001 Add test script 2020-05-19 18:25:18 +01:00
with002 Add test script 2020-05-19 18:25:18 +01:00
with003 Apply the patch from idris2-boot. 2020-05-22 20:26:10 +02:00