diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-29 21:46:48 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-29 21:46:48 +0400 |
commit | ce95c117f6ca765958e533d1e2d5e3175e2346a1 (patch) | |
tree | 2e63c68b11bd0e101250dc3f7de54d444288a400 /moses/ScoreComponentCollectionTest.cpp | |
parent | f5d3f16fab07f22cb1ca9070d33e413fd0aa0f3f (diff) | |
parent | 972001e345573e9c193b035f1ed016e8721606ca (diff) |
merge
Diffstat (limited to 'moses/ScoreComponentCollectionTest.cpp')
-rw-r--r-- | moses/ScoreComponentCollectionTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/ScoreComponentCollectionTest.cpp b/moses/ScoreComponentCollectionTest.cpp index 110021ca5..7da5cd1ec 100644 --- a/moses/ScoreComponentCollectionTest.cpp +++ b/moses/ScoreComponentCollectionTest.cpp @@ -103,7 +103,7 @@ BOOST_FIXTURE_TEST_CASE(sparse_feature, MockProducers) BOOST_CHECK_EQUAL( scc.GetScoreForProducer(&sparse,"third"), 0.0f); scc.Assign(&sparse, "first", -1.9f); BOOST_CHECK_EQUAL( scc.GetScoreForProducer(&sparse,"first"), -1.9f); - scc.PlusEquals(&sparse, "first", -1.9f); + scc.PlusEquals(&sparse, StringPiece("first"), -1.9f); BOOST_CHECK_EQUAL( scc.GetScoreForProducer(&sparse,"first"), -3.8f); } |