Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/18/17 12:17:13 (8 years ago)
Author:
gkronber
Message:

#2650 infix formatter also produces factor variable weights, infix parser supports reading of factor variable weights

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/InfixExpressionParserTest.cs

    r14351 r14761  
    3737      Console.WriteLine(formatter.Format(parser.Parse("3*3")));
    3838      Console.WriteLine(formatter.Format(parser.Parse("3 * 4")));
    39       Console.WriteLine(formatter.Format(parser.Parse("123E-03")  ));
     39      Console.WriteLine(formatter.Format(parser.Parse("123E-03")));
    4040      Console.WriteLine(formatter.Format(parser.Parse("123e-03")));
    4141      Console.WriteLine(formatter.Format(parser.Parse("123e+03")));
     
    106106      Console.WriteLine(formatter.Format(parser.Parse("x * LAG('x', +1)")));
    107107
     108      Console.WriteLine(formatter.Format(parser.Parse("x [1.0] * y")));
     109      Console.WriteLine(formatter.Format(parser.Parse("x [1.0, 2.0] * y [1.0, 2.0]")));
     110      Console.WriteLine(formatter.Format(parser.Parse("x[1] * y")));
     111      Console.WriteLine(formatter.Format(parser.Parse("x[1, 2] * y [1, 2]")));
     112
     113      Console.WriteLine(formatter.Format(parser.Parse("x='bla' * y")));
     114      Console.WriteLine(formatter.Format(parser.Parse("x = 'bla'")));
     115      Console.WriteLine(formatter.Format(parser.Parse("x = \"bla\"")));
     116      Console.WriteLine(formatter.Format(parser.Parse("1.0 * x = bla")));
     117      Console.WriteLine(formatter.Format(parser.Parse("1.0 * \"x\" = bla + y = \"bla2\"")));
    108118    }
    109119  }
Note: See TracChangeset for help on using the changeset viewer.