tests/stemtest.cc File Reference

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

Include dependency graph for stemtest.cc:

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.


Function Documentation

int main ( int  argc,
char **  argv 
)

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]

Definition at line 84 of file stemtest.cc.

References FAIL_TEST, JUNKSIZE, seed, stemmer, and tout.

static bool test_stemrandom (  )  [static]

Definition at line 48 of file stemtest.cc.

References FAIL_TEST, JUNKSIZE, seed, stemmer, and tout.


Variable Documentation

const int JUNKSIZE = 2 * 1048576 [static]

Definition at line 36 of file stemtest.cc.

Referenced by test_stemjunk(), and test_stemrandom().

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().

Definition at line 40 of file stemtest.cc.

Referenced by test_stemdict(), test_stemjunk(), and test_stemrandom().

const test_desc tests[] [static]

Initial value:

 {
    {"stemrandom",              test_stemrandom},
    {"stemjunk",                test_stemjunk},
    {"stemdict",                test_stemdict},
    {0, 0}
}
The lists of tests to perform.

Definition at line 170 of file stemtest.cc.


Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.