Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/18/17 14:39:32 (7 years ago)
Author:
gkronber
Message:

#2650 added support for negative weights for parsing expressions with factors

File:
1 edited

Legend:

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

    r14761 r14765  
    111111      Console.WriteLine(formatter.Format(parser.Parse("x[1, 2] * y [1, 2]")));
    112112
     113      Console.WriteLine(formatter.Format(parser.Parse("x [+1.0] * y")));
     114      Console.WriteLine(formatter.Format(parser.Parse("x [-1.0] * y")));
     115      Console.WriteLine(formatter.Format(parser.Parse("x [-1.0, -2.0] * y [+1.0, +2.0]")));
     116
    113117      Console.WriteLine(formatter.Format(parser.Parse("x='bla' * y")));
    114118      Console.WriteLine(formatter.Format(parser.Parse("x = 'bla'")));
    115119      Console.WriteLine(formatter.Format(parser.Parse("x = \"bla\"")));
    116120      Console.WriteLine(formatter.Format(parser.Parse("1.0 * x = bla")));
    117       Console.WriteLine(formatter.Format(parser.Parse("1.0 * \"x\" = bla + y = \"bla2\"")));
     121      Console.WriteLine(formatter.Format(parser.Parse("-1.0 * x = bla")));
     122      Console.WriteLine(formatter.Format(parser.Parse("+1.0 * \"x\" = bla + y = \"bla2\"")));
    118123    }
    119124  }
Note: See TracChangeset for help on using the changeset viewer.