xapian-core
1.4.25
|
tests of Xapian::Weight subclasses More...
#include <config.h>
#include "api_weight.h"
#include <cmath>
#include <xapian.h>
#include "apitest.h"
#include "testutils.h"
Go to the source code of this file.
Classes | |
class | CheckInitWeight |
class | CheckStatsWeight |
Functions | |
DEFINE_TESTCASE (tradweight3, !backend) | |
DEFINE_TESTCASE (unigramlmweight3, !backend) | |
DEFINE_TESTCASE (bm25weight3, !backend) | |
DEFINE_TESTCASE (bm25weight4, backend) | |
DEFINE_TESTCASE (bm25weight5, backend) | |
Test non-zero k2 with zero k1. More... | |
DEFINE_TESTCASE (bm25plusweight1, !backend) | |
DEFINE_TESTCASE (bm25plusweight2, backend) | |
DEFINE_TESTCASE (bm25plusweight3, backend) | |
DEFINE_TESTCASE (inl2weight1, !backend) | |
DEFINE_TESTCASE (inl2weight2, !backend) | |
DEFINE_TESTCASE (inl2weight3, backend) | |
DEFINE_TESTCASE (ifb2weight1, !backend) | |
DEFINE_TESTCASE (ifb2weight2, !backend) | |
DEFINE_TESTCASE (ifb2weight3, backend) | |
DEFINE_TESTCASE (ineb2weight1, !backend) | |
DEFINE_TESTCASE (ineb2weight2, !backend) | |
DEFINE_TESTCASE (ineb2weight3, backend) | |
DEFINE_TESTCASE (bb2weight1, !backend) | |
DEFINE_TESTCASE (bb2weight2, !backend) | |
DEFINE_TESTCASE (bb2weight3, backend) | |
DEFINE_TESTCASE (bb2weight4, backend) | |
DEFINE_TESTCASE (dlhweight1, backend) | |
DEFINE_TESTCASE (dlhweight2, !backend) | |
static void | gen_wdf_eq_doclen_db (Xapian::WritableDatabase &db, const string &) |
DEFINE_TESTCASE (dlhweight3, backend) | |
DEFINE_TESTCASE (pl2weight1, !backend) | |
DEFINE_TESTCASE (pl2weight2, !backend) | |
DEFINE_TESTCASE (pl2weight3, backend) | |
DEFINE_TESTCASE (pl2plusweight1, !backend) | |
DEFINE_TESTCASE (pl2plusweight2, !backend) | |
DEFINE_TESTCASE (pl2plusweight3, !backend) | |
DEFINE_TESTCASE (pl2plusweight4, backend) | |
DEFINE_TESTCASE (pl2plusweight5, backend) | |
DEFINE_TESTCASE (dphweight1, backend) | |
DEFINE_TESTCASE (dphweight2, !backend) | |
DEFINE_TESTCASE (dphweight3, backend) | |
DEFINE_TESTCASE (tfidfweight1, !backend) | |
DEFINE_TESTCASE (tfidfweight2, !backend) | |
DEFINE_TESTCASE (tfidfweight3, backend) | |
DEFINE_TESTCASE (checkinitweight1, backend &&!multi &&!remote) | |
Regression test - check init() is called for the term-indep Weight obj. More... | |
DEFINE_TESTCASE (checkstatsweight1, backend &&!remote) | |
Check the weight subclass gets the correct stats. More... | |
DEFINE_TESTCASE (checkstatsweight2, backend &&!remote) | |
Check the weight subclass gets the correct stats with OP_SYNONYM. More... | |
DEFINE_TESTCASE (checkstatsweight3, backend &&!remote &&!multi) | |
Check the weight subclass gets the correct stats with OP_WILDCARD. More... | |
DEFINE_TESTCASE (checkstatsweight4, backend &&!remote &&!multi) | |
Check the stats for a repeated term are correct. More... | |
DEFINE_TESTCASE (unigramlmweight4, backend) | |
DEFINE_TESTCASE (unigramlmweight5, backend) | |
DEFINE_TESTCASE (unigramlmweight6, !backend) | |
DEFINE_TESTCASE (unigramlmweight7, backend) | |
DEFINE_TESTCASE (unigramlmweight8, backend) | |
DEFINE_TESTCASE (boolweight1, !backend) | |
DEFINE_TESTCASE (coordweight1, backend) | |
DEFINE_TESTCASE (coordweight2, !backend) | |
tests of Xapian::Weight subclasses
Definition in file api_weight.cc.
DEFINE_TESTCASE | ( | tradweight3 | , |
! | backend | ||
) |
Definition at line 36 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::TradWeight::name(), Xapian::TradWeight::serialise(), TEST, and Xapian::TradWeight::unserialise().
DEFINE_TESTCASE | ( | unigramlmweight3 | , |
! | backend | ||
) |
Definition at line 56 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::Weight::JELINEK_MERCER_SMOOTHING, Xapian::LMWeight::name(), Xapian::LMWeight::serialise(), TEST, and Xapian::LMWeight::unserialise().
DEFINE_TESTCASE | ( | bm25weight3 | , |
! | backend | ||
) |
Definition at line 73 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::BM25Weight::name(), Xapian::BM25Weight::serialise(), TEST, and Xapian::BM25Weight::unserialise().
DEFINE_TESTCASE | ( | bm25weight4 | , |
backend | |||
) |
Definition at line 90 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_REL.
DEFINE_TESTCASE | ( | bm25weight5 | , |
backend | |||
) |
Test non-zero k2 with zero k1.
Definition at line 114 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), mset_expect_order(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_REL.
DEFINE_TESTCASE | ( | bm25plusweight1 | , |
! | backend | ||
) |
Definition at line 132 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::BM25PlusWeight::name(), Xapian::BM25PlusWeight::serialise(), TEST, and Xapian::BM25PlusWeight::unserialise().
DEFINE_TESTCASE | ( | bm25plusweight2 | , |
backend | |||
) |
Definition at line 149 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_REL.
DEFINE_TESTCASE | ( | bm25plusweight3 | , |
backend | |||
) |
Definition at line 172 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, and TEST_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | inl2weight1 | , |
! | backend | ||
) |
Definition at line 192 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::InL2Weight::name(), Xapian::InL2Weight::serialise(), TEST, and Xapian::InL2Weight::unserialise().
DEFINE_TESTCASE | ( | inl2weight2 | , |
! | backend | ||
) |
Definition at line 209 of file api_weight.cc.
References Xapian::InL2Weight::serialise(), TEST_EQUAL, and TEST_EXCEPTION.
DEFINE_TESTCASE | ( | inl2weight3 | , |
backend | |||
) |
Definition at line 223 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), mset_expect_order(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | ifb2weight1 | , |
! | backend | ||
) |
Definition at line 252 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::IfB2Weight::name(), Xapian::IfB2Weight::serialise(), TEST, and Xapian::IfB2Weight::unserialise().
DEFINE_TESTCASE | ( | ifb2weight2 | , |
! | backend | ||
) |
Definition at line 269 of file api_weight.cc.
References Xapian::IfB2Weight::serialise(), TEST_EQUAL, and TEST_EXCEPTION.
DEFINE_TESTCASE | ( | ifb2weight3 | , |
backend | |||
) |
Definition at line 283 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | ineb2weight1 | , |
! | backend | ||
) |
Definition at line 311 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::IneB2Weight::name(), Xapian::IneB2Weight::serialise(), TEST, and Xapian::IneB2Weight::unserialise().
DEFINE_TESTCASE | ( | ineb2weight2 | , |
! | backend | ||
) |
Definition at line 328 of file api_weight.cc.
References Xapian::IneB2Weight::serialise(), TEST_EQUAL, and TEST_EXCEPTION.
DEFINE_TESTCASE | ( | ineb2weight3 | , |
backend | |||
) |
Definition at line 342 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | bb2weight1 | , |
! | backend | ||
) |
Definition at line 373 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::BB2Weight::name(), Xapian::BB2Weight::serialise(), TEST, and Xapian::BB2Weight::unserialise().
DEFINE_TESTCASE | ( | bb2weight2 | , |
! | backend | ||
) |
Definition at line 390 of file api_weight.cc.
References Xapian::BB2Weight::serialise(), TEST_EQUAL, and TEST_EXCEPTION.
DEFINE_TESTCASE | ( | bb2weight3 | , |
backend | |||
) |
Definition at line 404 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | bb2weight4 | , |
backend | |||
) |
Definition at line 448 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, and TEST_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | dlhweight1 | , |
backend | |||
) |
Definition at line 463 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), mset_expect_order(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | dlhweight2 | , |
! | backend | ||
) |
Definition at line 496 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::DLHWeight::name(), Xapian::DLHWeight::serialise(), TEST, and Xapian::DLHWeight::unserialise().
DEFINE_TESTCASE | ( | dlhweight3 | , |
backend | |||
) |
Definition at line 521 of file api_weight.cc.
References gen_wdf_eq_doclen_db(), get_database(), Xapian::Enquire::get_mset(), query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, and TEST_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | pl2weight1 | , |
! | backend | ||
) |
Definition at line 537 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::PL2Weight::name(), Xapian::PL2Weight::serialise(), TEST, and Xapian::PL2Weight::unserialise().
DEFINE_TESTCASE | ( | pl2weight2 | , |
! | backend | ||
) |
Definition at line 554 of file api_weight.cc.
References Xapian::PL2Weight::serialise(), TEST_EQUAL, and TEST_EXCEPTION.
DEFINE_TESTCASE | ( | pl2weight3 | , |
backend | |||
) |
Definition at line 565 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | pl2plusweight1 | , |
! | backend | ||
) |
Definition at line 594 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::PL2PlusWeight::name(), Xapian::PL2PlusWeight::serialise(), TEST, and Xapian::PL2PlusWeight::unserialise().
DEFINE_TESTCASE | ( | pl2plusweight2 | , |
! | backend | ||
) |
Definition at line 611 of file api_weight.cc.
References TEST_EXCEPTION.
DEFINE_TESTCASE | ( | pl2plusweight3 | , |
! | backend | ||
) |
Definition at line 622 of file api_weight.cc.
References Xapian::PL2PlusWeight::serialise(), and TEST_EQUAL.
DEFINE_TESTCASE | ( | pl2plusweight4 | , |
backend | |||
) |
Definition at line 633 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, and TEST_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | pl2plusweight5 | , |
backend | |||
) |
Definition at line 649 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), mset_expect_order(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | dphweight1 | , |
backend | |||
) |
Definition at line 678 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | dphweight2 | , |
! | backend | ||
) |
Definition at line 707 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::DPHWeight::name(), Xapian::DPHWeight::serialise(), TEST, and Xapian::DPHWeight::unserialise().
DEFINE_TESTCASE | ( | dphweight3 | , |
backend | |||
) |
Definition at line 724 of file api_weight.cc.
References gen_wdf_eq_doclen_db(), get_database(), Xapian::Enquire::get_mset(), query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, and TEST_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | tfidfweight1 | , |
! | backend | ||
) |
Definition at line 740 of file api_weight.cc.
References Xapian::TfIdfWeight::serialise(), TEST_EQUAL, and TEST_EXCEPTION.
DEFINE_TESTCASE | ( | tfidfweight2 | , |
! | backend | ||
) |
Definition at line 755 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::TfIdfWeight::name(), Xapian::TfIdfWeight::serialise(), TEST, and Xapian::TfIdfWeight::unserialise().
DEFINE_TESTCASE | ( | tfidfweight3 | , |
backend | |||
) |
Definition at line 772 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), mset_expect_order(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | checkinitweight1 | , |
backend &&!multi &&! | remote | ||
) |
Regression test - check init() is called for the term-indep Weight obj.
Definition at line 922 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Query::OP_AND, Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), and TEST_EQUAL.
DEFINE_TESTCASE | ( | checkstatsweight1 | , |
backend &&! | remote | ||
) |
Check the weight subclass gets the correct stats.
Definition at line 1095 of file api_weight.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), get_database(), Xapian::Database::get_doccount(), Xapian::Enquire::get_mset(), Xapian::PostingIterator::get_wdf(), Xapian::Database::postlist_begin(), Xapian::Database::postlist_end(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), and TEST_EQUAL.
DEFINE_TESTCASE | ( | checkstatsweight2 | , |
backend &&! | remote | ||
) |
Check the weight subclass gets the correct stats with OP_SYNONYM.
Definition at line 1129 of file api_weight.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), get_database(), Xapian::Query::get_description(), Xapian::Database::get_doccount(), Xapian::Enquire::get_mset(), Xapian::PostingIterator::get_wdf(), Xapian::Query::OP_SYNONYM, Xapian::Database::postlist_begin(), Xapian::Database::postlist_end(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), TEST_EQUAL, TEST_REL, and tout.
DEFINE_TESTCASE | ( | checkstatsweight3 | , |
backend &&!remote &&! | multi | ||
) |
Check the weight subclass gets the correct stats with OP_WILDCARD.
Definition at line 1203 of file api_weight.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), get_database(), Xapian::Query::get_description(), Xapian::Database::get_doccount(), Xapian::Enquire::get_mset(), Xapian::Query::OP_WILDCARD, Xapian::Database::postlist_begin(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), TEST_EQUAL, TEST_REL, testcases, and tout.
DEFINE_TESTCASE | ( | checkstatsweight4 | , |
backend &&!remote &&! | multi | ||
) |
Check the stats for a repeated term are correct.
Definition at line 1275 of file api_weight.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), get_database(), Xapian::Database::get_doccount(), Xapian::Enquire::get_mset(), Xapian::PostingIterator::get_wdf(), Xapian::Database::postlist_begin(), Xapian::Database::postlist_end(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), and TEST_EQUAL.
DEFINE_TESTCASE | ( | unigramlmweight4 | , |
backend | |||
) |
Definition at line 1309 of file api_weight.cc.
References get_database(), Xapian::Enquire::get_mset(), Xapian::Weight::JELINEK_MERCER_SMOOTHING, Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and Xapian::Weight::TWO_STAGE_SMOOTHING.
DEFINE_TESTCASE | ( | unigramlmweight5 | , |
backend | |||
) |
Definition at line 1329 of file api_weight.cc.
References Xapian::Weight::ABSOLUTE_DISCOUNT_SMOOTHING, Xapian::Weight::DIRICHLET_SMOOTHING, get_database(), Xapian::Enquire::get_mset(), Xapian::Weight::JELINEK_MERCER_SMOOTHING, Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and Xapian::Weight::TWO_STAGE_SMOOTHING.
DEFINE_TESTCASE | ( | unigramlmweight6 | , |
! | backend | ||
) |
Definition at line 1369 of file api_weight.cc.
References Xapian::Weight::DIRICHLET_SMOOTHING, FAIL_TEST, Xapian::Error::get_msg(), Xapian::LMWeight::name(), Xapian::LMWeight::serialise(), TEST, and Xapian::LMWeight::unserialise().
DEFINE_TESTCASE | ( | unigramlmweight7 | , |
backend | |||
) |
Definition at line 1386 of file api_weight.cc.
References Xapian::Weight::DIRICHLET_PLUS_SMOOTHING, Xapian::Weight::DIRICHLET_SMOOTHING, get_database(), Xapian::Enquire::get_mset(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, and TEST_REL.
DEFINE_TESTCASE | ( | unigramlmweight8 | , |
backend | |||
) |
Definition at line 1415 of file api_weight.cc.
References Xapian::Weight::DIRICHLET_SMOOTHING, get_database(), Xapian::Enquire::get_mset(), Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), TEST_EQUAL, TEST_EQUAL_DOUBLE, and TEST_NOT_EQUAL_DOUBLE.
DEFINE_TESTCASE | ( | boolweight1 | , |
! | backend | ||
) |
Definition at line 1441 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::BoolWeight::name(), Xapian::BoolWeight::serialise(), TEST, and Xapian::BoolWeight::unserialise().
DEFINE_TESTCASE | ( | coordweight1 | , |
backend | |||
) |
Definition at line 1458 of file api_weight.cc.
References Xapian::MSet::begin(), Xapian::MSet::end(), get_database(), Xapian::Enquire::get_matching_terms_begin(), Xapian::Enquire::get_matching_terms_end(), Xapian::Enquire::get_mset(), Xapian::Query::OP_OR, Xapian::Query::OP_SCALE_WEIGHT, query(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::MSet::size(), and TEST_EQUAL.
DEFINE_TESTCASE | ( | coordweight2 | , |
! | backend | ||
) |
Definition at line 1490 of file api_weight.cc.
References FAIL_TEST, Xapian::Error::get_msg(), Xapian::CoordWeight::name(), Xapian::CoordWeight::serialise(), TEST, and Xapian::CoordWeight::unserialise().
|
static |
Definition at line 513 of file api_weight.cc.
References Xapian::WritableDatabase::add_document(), and Xapian::Document::add_term().
Referenced by DEFINE_TESTCASE().