summaryrefslogtreecommitdiff
path: root/jstests/core/error5.js
blob: edcfa059d25bfc639e99f1168a041d194b58c97a (plain)
1
2
3
4
5
6
7
8
9
10
11
// @tags: [requires_fastcount]

t = db.error5;
t.drop();

assert.throws(function() {
    t.save(4);
    printjson(t.findOne());
}, [], "A");
t.save({a: 1});
assert.eq(1, t.count(), "B");