0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/error5.js
2011-01-21 09:01:24 -05:00

9 lines
164 B
JavaScript

t = db.error5
t.drop();
assert.throws( function(){ t.save( 4 ); printjson( t.findOne() ) } , null , "A" );
t.save( { a : 1 } )
assert.eq( 1 , t.count() , "B" );