0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/insert2.js
2010-11-01 23:43:57 -04:00

9 lines
147 B
JavaScript

t = db.insert2
t.drop()
assert.isnull( t.findOne() , "A" )
t.insert( { z : 1 , $inc : { x : 1 } } , true );
assert.isnull( t.findOne() , "B" )