summaryrefslogtreecommitdiff
path: root/jstests/error5.js
blob: 5884d20d8c150d936f654c39fc17aa12de6eedcf (plain)
1
2
3
4
5
6
7
8

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" );