Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/PrintExpressionTests.cs @ 15771

Last change on this file since 15771 was 15771, checked in by bburlacu, 6 years ago

#2895: Add solution skeleton for PushGP with genealogy analysis.

File size: 706 bytes
Line 
1namespace HeuristicLab.Tests.Interpreter.Expressions {
2  using System.Globalization;
3
4  using HeuristicLab.Problems.ProgramSynthesis;
5
6  using Microsoft.VisualStudio.TestTools.UnitTesting;
7
8  [TestClass]
9  public class PrintExpressionTests : ExpressionTest {
10
11    [TestMethod]
12    [TestProperty("Time", "Short")]
13    [TestCategory("ExpressionTest")]
14    [TestCategory("PrintExpressionTest")]
15    public void TestPrintFloat() {
16      var value = 29.561570440978656;
17      interpreter.FloatStack.Push(value);
18      interpreter.Run(new FloatPrintExpression());
19
20      Assert.AreEqual(value.ToString("R", CultureInfo.InvariantCulture), interpreter.PrintStack.ToString());
21    }
22  }
23}
Note: See TracBrowser for help on using the repository browser.