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

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/}));