#include <config.h>#include <cstdlib>#include <string>#include <fstream>#include <iostream>#include <xapian/stem.h>#include "testsuite.h"

Go to the source code of this file.
Functions | |
| static bool | test_stemrandom () |
| static bool | test_stemjunk () |
| static bool | test_stemdict () |
| int | main (int argc, char **argv) |
Variables | |
| static const int | JUNKSIZE = 2 * 1048576 |
| static string | language |
| static Xapian::Stem | stemmer |
| static string | srcdir |
| static int | seed |
| static const test_desc | tests [] |
| The lists of tests to perform. | |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 177 of file stemtest.cc.
References test_driver::add_command_line_option(), Xapian::Stem::get_available_languages(), test_driver::get_srcdir(), language, test_driver::parse_command_line(), test_driver::run(), seed, and srcdir.
| static bool test_stemdict | ( | ) | [static] |
Definition at line 116 of file stemtest.cc.
References FAIL_TEST, language, SKIP_TEST, srcdir, stemmer, TEST_EQUAL, and tout.
| static bool test_stemjunk | ( | ) | [static] |
| static bool test_stemrandom | ( | ) | [static] |
const int JUNKSIZE = 2 * 1048576 [static] |
string language [static] |
Definition at line 38 of file stemtest.cc.
Referenced by DEFINE_TESTCASE(), main(), and test_stemdict().
int seed [static] |
Definition at line 44 of file stemtest.cc.
Referenced by DEFINE_TESTCASE(), main(), test_stemjunk(), and test_stemrandom().
string srcdir [static] |
Definition at line 42 of file stemtest.cc.
Referenced by test_driver::get_srcdir(), main(), and test_stemdict().
Xapian::Stem stemmer [static] |
Definition at line 40 of file stemtest.cc.
Referenced by test_stemdict(), test_stemjunk(), and test_stemrandom().
Initial value:
{
{"stemrandom", test_stemrandom},
{"stemjunk", test_stemjunk},
{"stemdict", test_stemdict},
{0, 0}
}
Definition at line 170 of file stemtest.cc.