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

Add missing unit tests #66

Open
luc-tielen opened this issue Oct 19, 2022 · 0 comments
Open

Add missing unit tests #66

luc-tielen opened this issue Oct 19, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@luc-tielen
Copy link
Owner

luc-tielen commented Oct 19, 2022

At the moment the test suite is fairly complete for the current feature set, but some things are still missing:

  • Test that checks a program with both a recursive rule and a non recursive rule that uses the recursive rule in it's body.
  • Test for a rule with more than 2 rule clauses.
  • Parsing tests, most notably tests with invalid programs. These should check that a clear error message is returned.

These should all be tested in a similar way to tests in the tests/lowering/ directory, in a separate test file in that directory.

  • Add a test that checks the caching mechanism works and e.g. btree code is reused. A good candidate for this is the single_non_recursive_rule test.
  • A test for the symbol table?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant