-
Notifications
You must be signed in to change notification settings - Fork 1
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
Comments
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
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.
The text was updated successfully, but these errors were encountered: