summaryrefslogtreecommitdiff
path: root/jstests/core/or_inexact.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/or_inexact.js')
-rw-r--r--jstests/core/or_inexact.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/or_inexact.js b/jstests/core/or_inexact.js
index 8c9db1cc7ba..3e7e374d7f5 100644
--- a/jstests/core/or_inexact.js
+++ b/jstests/core/or_inexact.js
@@ -190,8 +190,8 @@ t.drop();
t.ensureIndex({"a.b": 1});
t.insert({_id: 0, a: [{b: 1}, {b: 2}]});
t.insert({_id: 1, a: [{b: 2}, {b: 4}]});
-cursor = t.find(
- {"a.b": 2, $or: [{a: {$elemMatch: {b: {$lte: 1}}}}, {a: {$elemMatch: {b: {$gte: 4}}}}]});
+cursor =
+ t.find({"a.b": 2, $or: [{a: {$elemMatch: {b: {$lte: 1}}}}, {a: {$elemMatch: {b: {$gte: 4}}}}]});
assert.eq(2, cursor.itcount(), "case 14");
// Case 15: $or below $elemMatch.