1 | DEFINE_TESTCASE(doclength_after_flush, writable) {
|
---|
2 | Xapian::Document doc;
|
---|
3 | Xapian::WritableDatabase db = get_writable_database();
|
---|
4 | TEST_EXCEPTION(Xapian::DocNotFoundError, db.get_doclength(1));
|
---|
5 | db.replace_document(1, doc);
|
---|
6 | db.commit();
|
---|
7 | db.get_doclength(1);
|
---|
8 | return true;
|
---|
9 | }
|
---|