Skip to content

Commit 7380c24

Browse files
authored
Merge pull request #28 from nblumhardt/more-wildcard-tests
Additional wildcard comprehension test case and fix
2 parents f8c1247 + abc976a commit 7380c24

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Serilog.Expressions/Expressions/Operators.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ static class Operators
8080
OpIsMatch,
8181
OpIsDefined,
8282
RuntimeOpIsNull,
83-
RuntimeOpIsNotNull
83+
RuntimeOpIsNotNull,
84+
RuntimeOpAny,
85+
RuntimeOpAll
8486
};
8587

8688
public static bool SameOperator(string op1, string op2)

test/Serilog.Expressions.Tests/Cases/translation-cases.asv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ coalesce(A, B, C, D) ⇶ coalesce(A, coalesce(B, coales
1818
A[?] ⇶ _Internal_Any(A, |$$p0| {$$p0})
1919
A or B[*] ⇶ _Internal_Or(A, _Internal_All(B, |$$p0| {$$p0}))
2020
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')})))
21+
A[?].B[*].C = D ⇶ _Internal_Any(A, |$$p1| {_Internal_All($$p1.B, |$$p0| {_Internal_Equal($$p0.C, D)})})

0 commit comments

Comments
 (0)