summaryrefslogtreecommitdiff
path: root/jstests/core/server7756.js
blob: 5a7177ebcc9e460ae5fae7a47862fa5a85c33e74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

t = db.server7756;
t.drop();

t.save( { a:[ { 1:'x' }, 'y' ] } );

assert.eq( 1, t.count( { 'a.1':'x' } ) );
assert.eq( 1, t.count( { 'a.1':'y' } ) );

assert.eq( 1, t.count( { 'a.1':/x/ } ) );
assert.eq( 1, t.count( { 'a.1':/y/ } ) );