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

Unnecessary space in function expression string returned by getErrorMessage() #284

Closed
mariuszgromada opened this issue Nov 18, 2022 · 1 comment
Labels
cosmetic A tiny improvement
Milestone

Comments

@mariuszgromada
Copy link
Owner

Code:

Function f = new Function("f(x) = 2*x");
Argument x = new Argument("x = 2");
Argument y = new Argument("y = x^x", x);
Expression e = new Expression("f(y)", f, y);
e.checkSyntax();
System.out.println(e.getErrorMessage());

Code result:

[f(y)] checking ...
[f(y)] (f, 0) checking user defined function ...
[f(y)] -> [f] = [ 2*x] checking ...
[f(y)] -> [f] = [ 2*x] no errors.
[f(y)] (y, 2) checking dependent argument ...
[f(y)] -> [y] = [ x^x] checking ...
[f(y)] -> [y] = [ x^x] no errors.
[f(y)] no errors.

Should be:

[f(y)] checking ...
[f(y)] (f, 0) checking user defined function ...
[f(y)] -> [f] = [2*x] checking ...
[f(y)] -> [f] = [2*x] no errors.
[f(y)] (y, 2) checking dependent argument ...
[f(y)] -> [y] = [x^x] checking ...
[f(y)] -> [y] = [x^x] no errors.
[f(y)] no errors.
@mariuszgromada mariuszgromada added the cosmetic A tiny improvement label Nov 18, 2022
mariuszgromada added a commit that referenced this issue Nov 18, 2022
1. Fixed: Unnecessary newline at the end in getErrorMessage() #283
2. Fixed: Unnecessary space in function expression string returned by getErrorMessage() #284
@mariuszgromada
Copy link
Owner Author

Fixed :-)

@mariuszgromada mariuszgromada added this to the v.5.2 Orion milestone Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmetic A tiny improvement
Projects
None yet
Development

No branches or pull requests

1 participant