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 feature tests for both clox and jlox #6

Open
zxul767 opened this issue Nov 4, 2022 · 1 comment
Open

start feature tests for both clox and jlox #6

zxul767 opened this issue Nov 4, 2022 · 1 comment

Comments

@zxul767
Copy link
Owner

zxul767 commented Nov 4, 2022

the idea is to have the same set of tests for both interpreters. each test should be a pair of input/output files. for example, the following program tests shadowing of global variables by local variables:

var i = 0;
{ var i = 1; println i; }
println i;

the expected output is:

0
1
@zxul767 zxul767 changed the title start feature tests for both clox and jlox start feature tests for both clox and jlox Nov 9, 2022
@zxul767 zxul767 added the p0 label Dec 7, 2022
@zxul767
Copy link
Owner Author

zxul767 commented Dec 7, 2022

marking as p0 because the risk of regressions is already too great given all the changes we've done beyond the original implementation in the book

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