Add unfolded generation of lua for better performance

This commit is contained in:
Pieter Vander Vennet 2021-03-05 14:48:42 +01:00
parent aae20662e2
commit 3f0793ca22
42 changed files with 7629 additions and 325 deletions

View file

@ -368,8 +368,18 @@ namespace AspectedRouting.Test
var c = new Context();
var result = f.Evaluate(c, new Constant("01:15"));
Assert.Equal(75, result);
Assert.Equal(75.0, result);
}
[Fact]
public void ApplyDefaultFunctionWithId_ApplicationIsSuccessfull()
{
var e = new Apply(new Apply(Funcs.Default, new Constant("a")), Funcs.Id);
Assert.Single(e.Types);
Assert.Equal("string -> string", e.Types.First().ToString());
}
}
}