Ticket #259: patch
File patch, 612 bytes (added by , 17 years ago) |
---|
-
tests/api_wrdb.cc
2104 2104 2105 2105 return true; 2106 2106 } 2107 2108 /// Regression test of reading after writing but not flushing. 2109 DEFINE_TESTCASE(writeread1, writable && metadata) { 2110 Xapian::WritableDatabase db_w = get_writable_database(); 2111 db_w.set_metadata("1", "2"); 2112 string longitem(20000, 'j'); 2113 db_w.set_metadata("2", longitem); 2114 2115 string readitem = db_w.get_metadata("2"); 2116 TEST_EQUAL(readitem, longitem); 2117 2118 return true; 2119 }