#include "Ngram.h"
#include <boost/test/unit_test.hpp>
Go to the source code of this file.
Defines | |
#define | BOOST_TEST_MODULE MertNgram |
Functions | |
BOOST_AUTO_TEST_CASE (ngram_basic) | |
BOOST_AUTO_TEST_CASE (ngram_Add) | |
BOOST_AUTO_TEST_CASE (ngram_lookup) |
#define BOOST_TEST_MODULE MertNgram |
Definition at line 3 of file NgramTest.cpp.
BOOST_AUTO_TEST_CASE | ( | ngram_lookup | ) |
Definition at line 54 of file NgramTest.cpp.
References MosesTuning::NgramCounts::Add(), MosesTuning::NgramCounts::clear(), MosesTuning::NgramCounts::empty(), key, and MosesTuning::NgramCounts::Lookup().
BOOST_AUTO_TEST_CASE | ( | ngram_Add | ) |
Definition at line 29 of file NgramTest.cpp.
References MosesTuning::NgramCounts::Add(), MosesTuning::NgramCounts::empty(), MosesTuning::NgramCounts::get_default_count(), key, and MosesTuning::NgramCounts::size().
BOOST_AUTO_TEST_CASE | ( | ngram_basic | ) |
Definition at line 8 of file NgramTest.cpp.
References MosesTuning::NgramCounts::Add(), MosesTuning::NgramCounts::empty(), MosesTuning::NgramCounts::end(), MosesTuning::NgramCounts::find(), key, and MosesTuning::NgramCounts::size().