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

Write tests for erroronous code. #12

Open
srijan-paul opened this issue Oct 1, 2021 · 1 comment
Open

Write tests for erroronous code. #12

srijan-paul opened this issue Oct 1, 2021 · 1 comment
Labels
good first issue Good for newcomers test

Comments

@srijan-paul
Copy link
Owner

srijan-paul commented Oct 1, 2021

Currently, the unit tests only verify if a certain piece of code executes successfully and has the expected behavior.
However, often times the "expected behavior" is an error. e.g: The expected behavior for1 + "2" to report a bad binary operator error and stop execution.

We should have tests that assert that the compiler/runtime is able to report correct and well formed errors and doesn't crash/segfault.

@srijan-paul srijan-paul added enhancement New feature or request good first issue Good for newcomers test and removed enhancement New feature or request labels Oct 1, 2021
@srijan-paul
Copy link
Owner Author

This is being worked on as of #23

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 test
Projects
None yet
Development

No branches or pull requests

1 participant