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

Test monomorphized AST #200

Open
katat opened this issue Oct 10, 2024 · 0 comments · May be fixed by #240
Open

Test monomorphized AST #200

katat opened this issue Oct 10, 2024 · 0 comments · May be fixed by #240
Labels

Comments

@katat
Copy link
Collaborator

katat commented Oct 10, 2024

After monomorphization phase, it will generate a monomorphized AST (MAST).

To ensure the monomorphization process works as expected, it'd better to have snapshot tests for the generated MASTs for different cases.

There is some tool like https://github.com/mitsuhiko/insta?tab=readme-ov-file to do the job. But I think we should be able to structure the snapshot tests small enough, so the generated AST string can be compared in a manageable way.

@katat katat added the easy label Oct 10, 2024
@cyberbono3 cyberbono3 linked a pull request Dec 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant