Skip to content

Commit

Permalink
Additional wildcard comprehension test case and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed Mar 8, 2021
1 parent f8c1247 commit abc976a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Serilog.Expressions/Expressions/Operators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ static class Operators
OpIsMatch,
OpIsDefined,
RuntimeOpIsNull,
RuntimeOpIsNotNull
RuntimeOpIsNotNull,
RuntimeOpAny,
RuntimeOpAll
};

public static bool SameOperator(string op1, string op2)
Expand Down
1 change: 1 addition & 0 deletions test/Serilog.Expressions.Tests/Cases/translation-cases.asv
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ coalesce(A, B, C, D) ⇶ coalesce(A, coalesce(B, coales
A[?] ⇶ _Internal_Any(A, |$$p0| {$$p0})
A or B[*] ⇶ _Internal_Or(A, _Internal_All(B, |$$p0| {$$p0}))
not (A is not null) or not (A[?] = 'a') ⇶ _Internal_Or(_Internal_Not(_Internal_IsNotNull(A)), _Internal_Not(_Internal_Any(A, |$$p0| {_Internal_Equal($$p0, 'a')})))
A[?].B[*].C = D ⇶ _Internal_Any(A, |$$p1| {_Internal_All($$p1.B, |$$p0| {_Internal_Equal($$p0.C, D)})})

0 comments on commit abc976a

Please sign in to comment.