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

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