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

Start testing the interpreter #8

Open
osa1 opened this issue Jul 3, 2024 · 1 comment
Open

Start testing the interpreter #8

osa1 opened this issue Jul 3, 2024 · 1 comment

Comments

@osa1
Copy link
Contributor

osa1 commented Jul 3, 2024

We should start testing the interpreter.

The tests should be written in a way that is possible to run in the bootstrapped compiler as well.

My current thinking is that we should have everything needed to evaluate output of a program in the same source as the program. The test runner should parse the comments in the file for: exit code, stderr and stdout outputs.

In the interpreter, we can probably use golden-tests or something similar.

In the bootstrapped compiler we can keep using the same library, or port it to Fir.

@osa1
Copy link
Contributor Author

osa1 commented Jul 7, 2024

I've started adding some tests in https://github.com/fir-lang/fir/tree/main/tests, using golden-tests.

We should add more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant