Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative typecheck tests #181

Open
arthurpaulino opened this issue Aug 30, 2022 · 0 comments
Open

Negative typecheck tests #181

arthurpaulino opened this issue Aug 30, 2022 · 0 comments
Milestone

Comments

@arthurpaulino
Copy link
Member

We want our typechecker to throw errors when checking any pair of term and type that shouldn't typecheck.

A way of achieving some level of confidence in this direction is by getting a decently long list of term/type pairs such that no two pairs of types are defeq and then trying to check some permutations and expecting them to fail. Example:

Suppose we have the following pairs of terms and types:

(te1, ty1), (te2, ty2), (te3, ty3)

Then the following shouldn't typecheck for any pair:

(te1, ty2), (te2, ty3), (te3, ty1)
@arthurpaulino arthurpaulino added this to the G1.M4 milestone Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant