Files
mongo/jstests/core/error5.js

11 lines
158 B
JavaScript
Raw Normal View History

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