Files
mongo/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" )