Upsilon/UpsilonTests/GeneralTests/LengthOperatorTests.cs

25 lines
623 B
C#
Raw Permalink Normal View History

2018-11-26 15:55:10 +00:00
using Upsilon;
2018-11-24 14:11:33 +00:00
using Upsilon.Binder;
using Upsilon.Evaluator;
using Upsilon.StandardLibraries;
using Xunit;
namespace UpsilonTests.GeneralTests
{
public class LengthOperatorTests : TestClass
{
public LengthOperatorTests(StaticScriptFixture fix) : base(fix)
{
}
[Theory]
[InlineData(@"#""test""", 4)]
[InlineData(@"#{100,50,60,7863,1564,12354,10354}", 7)]
public void Test(string input, long expectedOutput)
{
2018-11-26 15:55:10 +00:00
var actual = Executor.EvaluateScript<long>(input, Options);
2018-11-24 14:11:33 +00:00
Assert.Equal(expectedOutput, actual);
}
}
}