-
Notifications
You must be signed in to change notification settings - Fork 19
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
unary operators inside functions don't work #16
Comments
i have noticed, by debugging, that it tries to analyze the "-" symbol by itself and in this case |
Hello, I will investigate. |
Test code: 15cb960 Test result: https://travis-ci.org/chriskonnertz/string-calc/builds/447489420?utm_source=github_status&utm_medium=notification Failing. So it seems you are right. Unfortunately ;) |
Thanks for your answer and for the great library (sorry if i sounded too cold on my first message but i was in a hurry). Is there anything i can do to help? Not sure i am knowledgeable enough to make a pull request |
If you have any idea how to fix this issue do not hesitate to let me know :) I will try to find a solution on my own but I do not know when I will be able to do so - I'm quite busy these days. |
Hello! |
Hello prohalexey, thank you for your contribution! Great to see you could find the spot where the issue is located and write an update that fixes it. Good work, thank you. I've merged your pull request and will create a new release with it. |
if i run a function and the arguments after the first start with a unary operator (for example
min(5, -10)
ormin(-5, -10)
don't work whilemin(-5, 10)
does ) i receive an error:If i wrap the arguments inside brackets it works
min(5, (-10))
I have tested only with min and max. I'm gona do some more tests and report if i find something else
The text was updated successfully, but these errors were encountered: