Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Sennrich <rico.sennrich@gmx.ch>2015-06-16 18:19:41 +0300
committerRico Sennrich <rico.sennrich@gmx.ch>2015-06-16 18:43:03 +0300
commit6c0f875385ffaf827139c9a9220a2c5bfd195178 (patch)
treee1d482621d7a666dd5101d3b1cd93bc5964eeddc /phrase-extract
parentad8114ddb0b7af26c74680a9657c5fa6f82cf1eb (diff)
testing the waters for c++11
please adjust your compiler options or complain if you rely on a compiler that doesn't support c++11 yet.
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/ScoreFeatureTest.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/phrase-extract/ScoreFeatureTest.cpp b/phrase-extract/ScoreFeatureTest.cpp
index 93a452dad..2863122dd 100644
--- a/phrase-extract/ScoreFeatureTest.cpp
+++ b/phrase-extract/ScoreFeatureTest.cpp
@@ -53,16 +53,16 @@ BOOST_AUTO_TEST_CASE(manager_configure_domain_except)
//Check that configure rejects illegal domain arg combinations
ScoreFeatureManager manager;
BOOST_CHECK_THROW(
- manager.configure(boost::assign::list_of("--DomainRatio")("/dev/null")("--DomainIndicator")("/dev/null")),
+ manager.configure({"--DomainRatio","/dev/null","--DomainIndicator","/dev/null"}),
ScoreFeatureArgumentException);
BOOST_CHECK_THROW(
- manager.configure(boost::assign::list_of("--SparseDomainSubset")("/dev/null")("--SparseDomainRatio")("/dev/null")),
+ manager.configure({"--SparseDomainSubset","/dev/null","--SparseDomainRatio","/dev/null"}),
ScoreFeatureArgumentException);
BOOST_CHECK_THROW(
- manager.configure(boost::assign::list_of("--SparseDomainBlah")("/dev/null")),
+ manager.configure({"--SparseDomainBlah","/dev/null"}),
ScoreFeatureArgumentException);
BOOST_CHECK_THROW(
- manager.configure(boost::assign::list_of("--DomainSubset")),
+ manager.configure({"--DomainSubset"}),
ScoreFeatureArgumentException);
}
@@ -84,16 +84,16 @@ static void checkDomainConfigured(
BOOST_AUTO_TEST_CASE(manager_config_domain)
{
checkDomainConfigured<RatioDomainFeature>
- (boost::assign::list_of ("--DomainRatio")("/dev/null"));
+ ({"--DomainRatio","/dev/null"});
checkDomainConfigured<IndicatorDomainFeature>
- (boost::assign::list_of("--DomainIndicator")("/dev/null"));
+ ({"--DomainIndicator","/dev/null"});
checkDomainConfigured<SubsetDomainFeature>
- (boost::assign::list_of("--DomainSubset")("/dev/null"));
+ ({"--DomainSubset","/dev/null"});
checkDomainConfigured<SparseRatioDomainFeature>
- (boost::assign::list_of("--SparseDomainRatio")("/dev/null"));
+ ({"--SparseDomainRatio","/dev/null"});
checkDomainConfigured<SparseIndicatorDomainFeature>
- (boost::assign::list_of("--SparseDomainIndicator")("/dev/null"));
+ ({"--SparseDomainIndicator","/dev/null"});
checkDomainConfigured<SparseSubsetDomainFeature>
- (boost::assign::list_of("--SparseDomainSubset")("/dev/null"));
+ ({"--SparseDomainSubset","/dev/null"});
}