Repository navigation
Fix #957: Agsy copattern support - #5827
Conversation
|
Excellent, @isovector ! Tests go into
|
|
Thanks @andreasabel ! Some suggestions on what exactly to test here would also be greatly appreciated :) I"m a complete beginner to Agda, so I might not come up with particularly good things to check on my own. |
Well, for instance:
Basically, you contribute a new feature and want some unit-tests that demonstrate that the feature does what you expect it to do. I mean, you had some incentive to fix this problem, most likely an Agda file with defs. by copatterns that you wanted to use auto on. This file might be too large for the testsuite, but you could distill a test from it. |
|
@isovector : You could e.g. copy https://github.com/agda/agda/blob/master/test/Succeed/Copatterns.agda , poke some holes into the function definitions, and see which Auto can solve... |
|
@andreasabel thanks, done! |
|
I merged this to master so more folks will play with it.
|
I got frustrated today by not having copattern support for auto, and decided to dive in to see what I could find.
There was a commented out datacon for
Agda.Auto.Syntax.Patcorresponding toPatProj. Uncommenting this, and then copying code from other cases to make everything exhaustive again seems to fix the issue.Comes with the warranty that I have no idea what I'm doing, but am happy to add some tests.
Fixes #957