summaryrefslogtreecommitdiff
path: root/jstests/storefunc.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-02-06 10:47:30 -0500
committerEliot Horowitz <eliot@10gen.com>2010-02-06 10:47:30 -0500
commitcc3f8770efcc761f55d1a1fe65881bcbebacd3db (patch)
treed7dfd24f407110bdcd043da5b67079d8efe980ef /jstests/storefunc.js
parenta39d197a5aa996569d39d073a973a690fde11296 (diff)
downloadmongo-cc3f8770efcc761f55d1a1fe65881bcbebacd3db.tar.gz
assert checking for _Id lookup
Diffstat (limited to 'jstests/storefunc.js')
-rw-r--r--jstests/storefunc.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/storefunc.js b/jstests/storefunc.js
index bae109035fe..8b78c7859ca 100644
--- a/jstests/storefunc.js
+++ b/jstests/storefunc.js
@@ -12,6 +12,8 @@ assert.eq( 0 , s.count() , "setup - D" );
s.save( { _id : "x" , value : "4" } );
assert.eq( 1 , s.count() , "setup - E" );
+assert.eq( 4 , s.findOne( { _id : "x" } ).value , "E2 " );
+
assert.eq( 4 , s.findOne().value , "setup - F" );
s.update( { _id : "x" } , { $set : { value : 5 } } );
assert.eq( 1 , s.count() , "setup - G" );
@@ -29,3 +31,5 @@ assert.eq( 6 , db.eval( "return x" ) , "exec - 2 " );
s.insert( { _id : "bar" , value : function( z ){ return 17 + z; } } );
assert.eq( 22 , db.eval( "return bar(5);" ) , "exec - 3 " );
+
+