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

BUG: builtin j doesn't work with integers as first argument, and crashes on integer-lists as first argument #173

Open
kcruijss opened this issue Oct 21, 2020 · 0 comments
Labels
Bug An issue indicating an unexpected problem or unintended behavior. Documentation An issue indicating a need for improvements or additions to the documentation.

Comments

@kcruijss
Copy link

In the new version of 05AB1E the builtin j can be used to pad leading spaces up to the given length (so the wiki is outdated in that regard as well, which still described its legacy functionality). This is useful, but unfortunately it only seems to work on strings, and not on integers for the first argument (second argument works fine for integers, strings, and decimals).

Try it online to reproduce.
Try just the last test case separated with implicit output to see the FunctionClauseError.
Came across it when I was making a test suite, so no relevant codegolf challenge to link in this case, like I did with the other bugs I reported.

@Adriandmen Adriandmen added Bug An issue indicating an unexpected problem or unintended behavior. Documentation An issue indicating a need for improvements or additions to the documentation. labels Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An issue indicating an unexpected problem or unintended behavior. Documentation An issue indicating a need for improvements or additions to the documentation.
Projects
None yet
Development

No branches or pull requests

2 participants