Ticket #397: doclength_after_flush.cc

File doclength_after_flush.cc, 297 bytes (added by Rich Lane, 15 years ago)

doclength_after_flush testcase

Line 
1DEFINE_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}