mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
9 lines
164 B
JavaScript
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" );
|
|
|