xapian-core  1.4.18
Functions | Variables
stemtest.cc File Reference

Test stemming algorithms. More...

#include <config.h>
#include <cstdlib>
#include <string>
#include <fstream>
#include <iostream>
#include <xapian.h>
#include "testsuite.h"
+ Include dependency graph for stemtest.cc:

Go to the source code of this file.

Functions

static void test_stemrandom ()
 
static void test_stemjunk ()
 
static void 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. More...
 

Detailed Description

Test stemming algorithms.

Definition in file stemtest.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ test_stemdict()

static void test_stemdict ( )
static

Definition at line 115 of file stemtest.cc.

References FAIL_TEST, language, SKIP_TEST, srcdir, stemmer, TEST_EQUAL, and tout.

◆ test_stemjunk()

static void test_stemjunk ( )
static

Definition at line 84 of file stemtest.cc.

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

◆ test_stemrandom()

static void test_stemrandom ( )
static

Definition at line 49 of file stemtest.cc.

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

Variable Documentation

◆ JUNKSIZE

const int JUNKSIZE = 2 * 1048576
static

Definition at line 37 of file stemtest.cc.

Referenced by test_stemjunk(), and test_stemrandom().

◆ language

string language
static

Definition at line 39 of file stemtest.cc.

Referenced by DEFINE_TESTCASE(), main(), and test_stemdict().

◆ seed

int seed
static

Definition at line 45 of file stemtest.cc.

Referenced by DEFINE_TESTCASE(), main(), test_stemjunk(), and test_stemrandom().

◆ srcdir

string srcdir
static

◆ stemmer

Xapian::Stem stemmer
static

◆ tests

const test_desc tests[]
static
Initial value:
= {
{"stemrandom", test_stemrandom},
{"stemjunk", test_stemjunk},
{"stemdict", test_stemdict},
{0, 0}
}
static void test_stemrandom()
Definition: stemtest.cc:49
static void test_stemjunk()
Definition: stemtest.cc:84
static void test_stemdict()
Definition: stemtest.cc:115

The lists of tests to perform.

Definition at line 167 of file stemtest.cc.