Ticket #232: patch
File patch, 807 bytes (added by , 17 years ago) |
---|
-
tests/api_wrdb.cc
1875 1875 return true; 1876 1876 } 1877 1877 1878 // Regression test for adding a piece of metadata on its own before adding 1879 // other things. 1880 DEFINE_TESTCASE(metadata4, metadata) { 1881 Xapian::WritableDatabase db = get_writable_database(); 1882 1883 db.set_metadata("foo", "foo"); 1884 db.flush(); 1885 1886 Xapian::Document doc; 1887 doc.add_posting("foo", 1); 1888 db.add_document(doc); 1889 1890 Xapian::Database dbr(get_writable_database_as_database()); 1891 1892 return true; 1893 } 1894 1895 1896 1878 1897 // Test that adding a document with a really long term gives an error on 1879 1898 // add_document() rather than on flush(). 1880 1899 DEFINE_TESTCASE(termtoolong1, writable) {