summaryrefslogtreecommitdiff
path: root/jstests/eval0.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/eval0.js')
-rw-r--r--jstests/eval0.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/eval0.js b/jstests/eval0.js
new file mode 100644
index 0000000..1b9bd35
--- /dev/null
+++ b/jstests/eval0.js
@@ -0,0 +1,3 @@
+
+assert.eq( 17 , db.eval( function(){ return 11 + 6; } ) , "A" );
+assert.eq( 17 , db.eval( function( x ){ return 10 + x; } , 7 ) , "B" );