Skip to content

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

@mariuszgromada

Description

@mariuszgromada

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cosmeticA tiny improvement

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions