Last change
on this file since 15017 was
15017,
checked in by pkimmesw, 7 years ago
|
#2665 Fixed Benchmark Problem Definition, Converted LoopExpressions to stateless expressions, Added several unit test to ensure funcionality, Fixed UI bugs
|
File size:
716 bytes
|
Rev | Line | |
---|
[15017] | 1 | namespace HeuristicLab.Tests.Interpreter.Expressions {
|
---|
| 2 | using System.Globalization;
|
---|
| 3 |
|
---|
| 4 | using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
|
---|
| 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.Top);
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.