-
Couldn't load subscription status.
- Fork 30
Runtime tests using examples from docstrings #210
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
base: main
Are you sure you want to change the base?
Conversation
|
Ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really nice work, some of the examples could be a bit more beginner-friendly but I know that is very hard to do without making them untestable.
|
I made a small improvement in two examples in the |
|
@zth what do you think? |
This PR is a proposal to add unit tests using docstrings. Currently the examples from docstrings have tests for compilation only.
bscemits the Js and passes the code tonodeusing the--eval|-eargument.TODO:
setIntervalFloatChanges
assert_eqfunctionsrc/Core__Global.resiArrayfrom the test suite and moved it to docstrings.DocTest script
--ignore-runtime-tests--ignore-runtime-tests 'RescriptCore.Array.toReversed,RescriptCore.Promise.withResolvers'.Array.toReversedandPromise.withResolversare not supported by Node