~ubuntu-branches/ubuntu/trusty/mongodb/trusty-proposed

« back to all changes in this revision

Viewing changes to jstests/evalb.js

  • Committer: Bazaar Package Importer
  • Author(s): Antonin Kral
  • Date: 2010-01-29 19:48:45 UTC
  • Revision ID: james.westby@ubuntu.com-20100129194845-8wbmkf626fwcavc9
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
t = db.evalb;
 
3
t.drop();
 
4
 
 
5
t.save( { x : 3 } );
 
6
 
 
7
assert.eq( 3, db.eval( function(){ return db.evalb.findOne().x; } ) , "A" );
 
8
 
 
9
db.setProfilingLevel( 2 );
 
10
 
 
11
assert.eq( 3, db.eval( function(){ return db.evalb.findOne().x; } ) , "B" );
 
12
 
 
13
db.setProfilingLevel( 0 );
 
14