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

Test: test script doesn't capture some runtime error #31

Open
tysg opened this issue Apr 29, 2020 · 1 comment
Open

Test: test script doesn't capture some runtime error #31

tysg opened this issue Apr 29, 2020 · 1 comment

Comments

@tysg
Copy link
Member

tysg commented Apr 29, 2020

grep will fail to capture runtime error like

Line 1798: Expected 2 arguments, but got 1.

and test cases with the above output is erroneously marked as PASSED.

@tysg
Copy link
Member Author

tysg commented Apr 29, 2020

In fact, src/evaluators/__tests__/source-2-lazy.test1.js uses parse_and_evaluate(stmt) which is not defined in the program at all. It should throw a runtime error.

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