xapian-core
1.4.26
|
Test the stemming API. More...
#include <config.h>
#include "api_stem.h"
#include <xapian.h>
#include "apitest.h"
#include "testsuite.h"
#include "testutils.h"
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... | |
Test the stemming API.
Definition in file api_stem.cc.
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 | ( | 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 | ( | stem3 | , |
! | backend | ||
) |
DEFINE_TESTCASE | ( | stemempty1 | , |
! | backend | ||
) |
Test handling of a stemmer returning an empty string.
Definition at line 81 of file api_stem.cc.
References Xapian::TermGenerator::index_text(), Xapian::TermGenerator::set_document(), Xapian::TermGenerator::set_stemmer(), Xapian::TermGenerator::set_stemming_strategy(), Xapian::TermGenerator::STEM_ALL, Xapian::Document::termlist_begin(), Xapian::Document::termlist_end(), TEST, and TEST_EQUAL.
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.