Add unfolded generation of lua for better performance
This commit is contained in:
parent
aae20662e2
commit
3f0793ca22
42 changed files with 7629 additions and 325 deletions
|
@ -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());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue