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 |
nicolas-abril
left a comment
There was a problem hiding this comment.
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