|
xapian-core
1.4.29
|
Test the spelling correction suggestion API. More...
#include <config.h>#include "api_spelling.h"#include <xapian.h>#include "apitest.h"#include "testsuite.h"#include "testutils.h"#include <string>
Include dependency graph for api_spelling.cc:Go to the source code of this file.
Macros | |
| #define | TARGET "\xe4\xb8\x80\xe4\xba\x9b" |
Functions | |
| DEFINE_TESTCASE (spell0,(spelling||remote) &&writable) | |
| DEFINE_TESTCASE (spell1, spelling &&writable) | |
| DEFINE_TESTCASE (spell2, spelling &&writable) | |
| DEFINE_TESTCASE (spell3, spelling) | |
| DEFINE_TESTCASE (spell4, spelling) | |
| DEFINE_TESTCASE (spell5, spelling) | |
| DEFINE_TESTCASE (spell6, spelling &&writable) | |
| DEFINE_TESTCASE (spell7, spelling) | |
| DEFINE_TESTCASE (spell8, spelling) | |
| Regression test - repeated trigrams cancelled in 1.2.5 and earlier. More... | |
Test the spelling correction suggestion API.
Definition in file api_spelling.cc.
| #define TARGET "\xe4\xb8\x80\xe4\xba\x9b" |
Referenced by DEFINE_TESTCASE().
| DEFINE_TESTCASE | ( | spell0 | , |
| (spelling||remote) && | writable | ||
| ) |
Definition at line 37 of file api_spelling.cc.
References Xapian::WritableDatabase::add_spelling(), Xapian::WritableDatabase::commit(), get_writable_database(), and Xapian::WritableDatabase::remove_spelling().
| DEFINE_TESTCASE | ( | spell1 | , |
| spelling && | writable | ||
| ) |
Definition at line 59 of file api_spelling.cc.
References Xapian::WritableDatabase::add_spelling(), Xapian::WritableDatabase::commit(), Xapian::Database::get_spelling_suggestion(), get_writable_database(), get_writable_database_as_database(), Xapian::WritableDatabase::remove_spelling(), and TEST_EQUAL.
| DEFINE_TESTCASE | ( | spell2 | , |
| spelling && | writable | ||
| ) |
Definition at line 156 of file api_spelling.cc.
References Xapian::WritableDatabase::add_spelling(), Xapian::WritableDatabase::commit(), Xapian::Database::get_spelling_suggestion(), get_writable_database(), get_writable_database_as_database(), and TEST_EQUAL.
| DEFINE_TESTCASE | ( | spell3 | , |
| spelling | |||
| ) |
Definition at line 179 of file api_spelling.cc.
References Xapian::Database::add_database(), Xapian::WritableDatabase::add_spelling(), get_database(), Xapian::Database::get_spelling_suggestion(), Xapian::Database::spellings_begin(), Xapian::Database::spellings_end(), TEST, and TEST_EQUAL.
| DEFINE_TESTCASE | ( | spell4 | , |
| spelling | |||
| ) |
Definition at line 244 of file api_spelling.cc.
References Xapian::WritableDatabase::add_spelling(), Xapian::WritableDatabase::commit(), get_database(), Xapian::Database::get_spelling_suggestion(), and TEST_EQUAL.
| DEFINE_TESTCASE | ( | spell5 | , |
| spelling | |||
| ) |
Definition at line 258 of file api_spelling.cc.
References Xapian::WritableDatabase::add_spelling(), get_database(), Xapian::Database::get_spelling_suggestion(), TARGET, and TEST_EQUAL.
| DEFINE_TESTCASE | ( | spell6 | , |
| spelling && | writable | ||
| ) |
Definition at line 275 of file api_spelling.cc.
References Xapian::WritableDatabase::add_spelling(), Xapian::WritableDatabase::commit(), Xapian::Database::get_spelling_suggestion(), get_writable_database(), get_writable_database_as_database(), and TEST_EQUAL.
| DEFINE_TESTCASE | ( | spell7 | , |
| spelling | |||
| ) |
Definition at line 289 of file api_spelling.cc.
References Xapian::WritableDatabase::add_spelling(), get_database(), Xapian::Database::get_spelling_suggestion(), and TEST_EQUAL.
| DEFINE_TESTCASE | ( | spell8 | , |
| spelling | |||
| ) |
Regression test - repeated trigrams cancelled in 1.2.5 and earlier.
Definition at line 308 of file api_spelling.cc.
References Xapian::WritableDatabase::add_spelling(), get_database(), Xapian::Database::get_spelling_suggestion(), and TEST_EQUAL.