Skip to content

Commit

Permalink
Add test for DateTimeAdd
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoraes committed Apr 15, 2024
1 parent 3255a08 commit 0af7f54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions JexlNet.Test/ExtendedGrammar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ public void Objects(string expression)
[Theory]
[InlineData("(now()|toMillis / 1000)|ceil == (millis() / 1000)|ceil", true)]
[InlineData("(((millis() / 1000) | ceil) * 1000) | toDateTime == ((now()|toMillis / 1000) | ceil * 1000) | toDateTime", true)]
[InlineData("(((millis() / 1000) | ceil) * 1000) | toDateTime | dateTimeAdd('second',5) == (((now()|toMillis / 1000) + 5) | ceil * 1000) | toDateTime", true)]
[InlineData("'22-Feb-24 00:00:00'|toDateTime == '2024-02-22T00:00:00Z'|toDateTime", true)]
public void TimeFunctions(string expression, bool expected)
{
Expand Down

0 comments on commit 0af7f54

Please sign in to comment.