summaryrefslogtreecommitdiff
path: root/jstests/core/query/regex/regexb.js
blob: 398b9c5b83659b70a594aaad407d24a799fe058a (plain)
1
2
3
4
5
6
7
8
9
// Test more than four regex expressions in a query -- SERVER-969

let t = db.jstests_regexb;
t.drop();

t.save({a: 'a', b: 'b', c: 'c', d: 'd', e: 'e'});

assert.eq(1, t.count({a: /a/, b: /b/, c: /c/, d: /d/, e: /e/}));
assert.eq(0, t.count({a: /a/, b: /b/, c: /c/, d: /d/, e: /barf/}));