-
Notifications
You must be signed in to change notification settings - Fork 439
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 List/sum and List/range built-ins #696
base: main
Are you sure you want to change the base?
add List/sum and List/range built-ins #696
Conversation
Can you include the tests on this PR too, please? |
Co-authored-by: Nicolas Abril <nicolas@higherorderco.com>
Co-authored-by: Nicolas Abril <nicolas@higherorderco.com>
I wrote simple tests for the functions, did not find any asserts/test suit in the repo |
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.
In the future we should test the prelude/standard library like other regular Bend programs, but for now we can create a new test suite that just runs some simple test programs for the builtins.
In tests/golden_tests.rs
you can create a new test function called builtins
that is identical to the io
function.
Then, in tests/golden_tests/
you can create a new directory called builtins
and put your test programs inside.
Added an inclusive List/range built-in to bend
Tested multiple examples, all of them seem to be working