Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/18 16:10:57 (5 years ago)
Author:
gkronber
Message:

#2938: added comments for infix parser tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/InfixExpressionParserTest.cs

    r15583 r16357  
    6161
    6262      Console.WriteLine(formatter.Format(parser.Parse("log(3)")));
    63       Console.WriteLine(formatter.Format(parser.Parse("log(-3)")));
     63      Console.WriteLine(formatter.Format(parser.Parse("log(-3)")));   // should produce log(-3) as output
    6464      Console.WriteLine(formatter.Format(parser.Parse("exp(3)")));
    65       Console.WriteLine(formatter.Format(parser.Parse("exp(-3)")));
     65      Console.WriteLine(formatter.Format(parser.Parse("exp(-3)")));  // should produce exp(-3) as output
    6666      Console.WriteLine(formatter.Format(parser.Parse("sqrt(3)")));
    6767
    68       Console.WriteLine(formatter.Format(parser.Parse("sqr((-3))")));
     68      Console.WriteLine(formatter.Format(parser.Parse("sqr((-3))")));  // should produce sqr((-3)) as output
    6969
    70       Console.WriteLine(formatter.Format(parser.Parse("3/3+2/2+1/1")));
    71       Console.WriteLine(formatter.Format(parser.Parse("-3+30-2+20-1+10")));
     70      Console.WriteLine(formatter.Format(parser.Parse("3/3+2/2+1/1"))); // ((3 * 1 / 3) + (2 * 1 / 2) + (1 * 1 / 1))
     71      Console.WriteLine(formatter.Format(parser.Parse("-3+30-2+20-1+10")));   //  not (30 + 20 + 10 + ((-1) * (3 + 2 + 1)))
    7272      // round trip
    73       Console.WriteLine(formatter.Format(parser.Parse(formatter.Format(parser.Parse("-3+30-2+20-1+10")))));
     73      Console.WriteLine(formatter.Format(parser.Parse(formatter.Format(parser.Parse("-3+30-2+20-1+10")))));   // not (30 + 20 + 10 + ((-(1)) * (3 + 2 + 1)))
    7474
    7575      Console.WriteLine(formatter.Format(parser.Parse("\"x1\"")));
Note: See TracChangeset for help on using the changeset viewer.