xapian-core  1.4.27
Classes | Functions
api_stem.cc File Reference

Test the stemming API. More...

#include <config.h>
#include "api_stem.h"
#include <xapian.h>
#include "apitest.h"
#include "testsuite.h"
#include "testutils.h"
+ Include dependency graph for api_stem.cc:

Go to the source code of this file.

Classes

class  MyStemImpl
 

Functions

 DEFINE_TESTCASE (stem1, !backend)
 Test user stemming algorithms. More...
 
 DEFINE_TESTCASE (stem2, !backend)
 New feature in 1.0.21/1.2.1 - "nb" and "nn" select the Norwegian stemmer. More...
 
 DEFINE_TESTCASE (stem3, !backend)
 Test add a stemmer test. More...
 
 DEFINE_TESTCASE (stemempty1, !backend)
 Test handling of a stemmer returning an empty string. More...
 
 DEFINE_TESTCASE (stemlangs2, !backend)
 Test invalid language names with various characters in. More...
 

Detailed Description

Test the stemming API.

Definition in file api_stem.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/5]

DEFINE_TESTCASE ( stem1  ,
backend 
)

Test user stemming algorithms.

Definition at line 46 of file api_stem.cc.

References Xapian::Stem::get_description(), and TEST_EQUAL.

◆ DEFINE_TESTCASE() [2/5]

DEFINE_TESTCASE ( stem2  ,
backend 
)

New feature in 1.0.21/1.2.1 - "nb" and "nn" select the Norwegian stemmer.

Definition at line 56 of file api_stem.cc.

References Xapian::Stem::get_description(), TEST_EQUAL, and TEST_NOT_EQUAL.

◆ DEFINE_TESTCASE() [3/5]

DEFINE_TESTCASE ( stem3  ,
backend 
)

Test add a stemmer test.

Definition at line 71 of file api_stem.cc.

References TEST_EQUAL.

◆ DEFINE_TESTCASE() [4/5]

DEFINE_TESTCASE ( stemempty1  ,
backend 
)

◆ DEFINE_TESTCASE() [5/5]

DEFINE_TESTCASE ( stemlangs2  ,
backend 
)

Test invalid language names with various characters in.

Definition at line 102 of file api_stem.cc.

References Xapian::Stem::get_description(), Xapian::Stem::is_none(), TEST, TEST_EQUAL, and TEST_EXCEPTION.