Skip to content

Commit

Permalink
Merge pull request #124 from growthbook/changelog/v0.6.1
Browse files Browse the repository at this point in the history
Add new test case for 0.6.1
  • Loading branch information
vazarkevych authored Jul 22, 2024
2 parents d91b552 + 1076315 commit 2f0b93f
Showing 1 changed file with 54 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specVersion": "0.6.0",
"specVersion": "0.6.1",
"evalCondition": [
[
"$not - pass",
Expand Down Expand Up @@ -2775,6 +2775,59 @@
"version": "1.2.3.4"
},
true
],
[
"$or pass but second condition fail",
{
"$or": [{ "foo": 1 }, { "bar": 1 }],
"baz": 2
},
{
"foo": 1,
"bar": 2,
"baz": 1
},
false
],
[
"$or and second condition both pass",
{
"$or": [{ "foo": 1 }, { "bar": 1 }],
"baz": 2
},
{
"foo": 1,
"bar": 2,
"baz": 2
},
true
],
[
"$and condition pass but $or fail",
{
"$and": [{ "foo": 1 }, { "bar": 1 }],
"$or": [{ "baz": 1 }, { "empty": 1 }]
},
{
"foo": 1,
"bar": 1,
"baz": 2
},
false
],
[
"$and and $or both pass",
{
"$and": [{ "foo": 1 }, { "bar": 1 }],
"$or": [{ "baz": 1 }, { "empty": 1 }]
},
{
"foo": 1,
"bar": 1,
"baz": 2,
"empty": 1
},
true
]
],
"hash": [
Expand Down

0 comments on commit 2f0b93f

Please # to comment.