Upsilon/UpsilonTests/GeneralTests/CommentTests.cs

25 lines
481 B
C#
Raw Normal View History

2018-11-26 15:55:10 +00:00
using Upsilon;
2018-11-26 12:59:57 +00:00
using Upsilon.Evaluator;
using Xunit;
namespace UpsilonTests.GeneralTests
{
public class CommentTests : TestClass
{
public CommentTests(StaticScriptFixture fix) : base(fix)
{
}
[Fact]
public void BasicComment()
{
const string input = @"
-- test comment
return 100
";
2018-11-26 15:55:10 +00:00
var actual = Executor.EvaluateScript<long>(input, Options);
Assert.Equal(100, actual);
2018-11-26 12:59:57 +00:00
}
}
}