xapian-core  1.4.20
Functions
api_spelling.cc File Reference

Test the spelling correction suggestion API. More...

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

Go to the source code of this file.

Functions

 DEFINE_TESTCASE (spell0, spelling||remote)
 
 DEFINE_TESTCASE (spell1, spelling)
 
 DEFINE_TESTCASE (spell2, spelling)
 
 DEFINE_TESTCASE (spell3, spelling)
 
 DEFINE_TESTCASE (spell4, spelling)
 
 DEFINE_TESTCASE (spell5, spelling)
 
 DEFINE_TESTCASE (spell6, spelling)
 
 DEFINE_TESTCASE (spell7, spelling)
 
 DEFINE_TESTCASE (spell8, spelling)
 Regression test - repeated trigrams cancelled in 1.2.5 and earlier. More...
 

Detailed Description

Test the spelling correction suggestion API.

Definition in file api_spelling.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/9]

DEFINE_TESTCASE ( spell0  ,
spelling||  remote 
)

◆ DEFINE_TESTCASE() [2/9]

DEFINE_TESTCASE ( spell1  ,
spelling   
)

◆ DEFINE_TESTCASE() [3/9]

DEFINE_TESTCASE ( spell2  ,
spelling   
)

◆ DEFINE_TESTCASE() [4/9]

DEFINE_TESTCASE ( spell3  ,
spelling   
)

◆ DEFINE_TESTCASE() [5/9]

DEFINE_TESTCASE ( spell4  ,
spelling   
)

◆ DEFINE_TESTCASE() [6/9]

DEFINE_TESTCASE ( spell5  ,
spelling   
)

◆ DEFINE_TESTCASE() [7/9]

DEFINE_TESTCASE ( spell6  ,
spelling   
)

◆ DEFINE_TESTCASE() [8/9]

DEFINE_TESTCASE ( spell7  ,
spelling   
)

◆ DEFINE_TESTCASE() [9/9]

DEFINE_TESTCASE ( spell8  ,
spelling   
)

Regression test - repeated trigrams cancelled in 1.2.5 and earlier.

Definition at line 298 of file api_spelling.cc.

References Xapian::WritableDatabase::add_spelling(), Xapian::WritableDatabase::commit(), Xapian::Database::get_spelling_suggestion(), get_writable_database(), and TEST_EQUAL.