0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/eval0.js
2009-04-30 10:40:33 -04:00

4 lines
138 B
JavaScript

assert.eq( 17 , db.eval( function(){ return 11 + 6; } ) , "A" );
assert.eq( 17 , db.eval( function( x ){ return 10 + x; } , 7 ) , "B" );