summaryrefslogtreecommitdiff
path: root/extractor/rule_extractor_test.cc
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-05-23 20:42:26 +0100
committerPaul Baltescu <pauldb89@gmail.com>2013-05-23 20:42:26 +0100
commit1f9e57479e1c03d208e0b2b7bf007426e8a16dab (patch)
tree41176fdd936eba591cd2d88ea1f7a2ad76f8cc36 /extractor/rule_extractor_test.cc
parent124878154b88819d35e78a42b854054bfc90e1b1 (diff)
parentfc3d47b81448c7537ed7951aea81ddcbd95bc18a (diff)
Merge branch 'master' of github.com:pauldb89/cdec
Diffstat (limited to 'extractor/rule_extractor_test.cc')
-rw-r--r--extractor/rule_extractor_test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/extractor/rule_extractor_test.cc b/extractor/rule_extractor_test.cc
index 5c1501c7..0587276a 100644
--- a/extractor/rule_extractor_test.cc
+++ b/extractor/rule_extractor_test.cc
@@ -49,7 +49,7 @@ class RuleExtractorTest : public Test {
PhraseAlignment phrase_alignment = {make_pair(0, 0)};
target_phrase_extractor = make_shared<MockTargetPhraseExtractor>();
- vector<pair<Phrase, PhraseAlignment> > target_phrases = {
+ vector<pair<Phrase, PhraseAlignment>> target_phrases = {
make_pair(target_phrase, phrase_alignment)
};
EXPECT_CALL(*target_phrase_extractor, ExtractPhrases(_, _, _, _, _, _))
@@ -104,7 +104,7 @@ TEST_F(RuleExtractorTest, TestExtractRulesNoFixPoint) {
EXPECT_CALL(*helper, GetLinksSpans(_, _, _, _, _)).Times(1);
// Set FindFixPoint to return false.
- vector<pair<int, int> > gaps;
+ vector<pair<int, int>> gaps;
helper->SetUp(0, 0, 0, 0, false, gaps, gaps, 0, true, true);
vector<Rule> rules = extractor->ExtractRules(phrase, phrase_location);
@@ -119,7 +119,7 @@ TEST_F(RuleExtractorTest, TestExtractRulesGapsFail) {
EXPECT_CALL(*helper, GetLinksSpans(_, _, _, _, _)).Times(1);
// Set CheckGaps to return false.
- vector<pair<int, int> > gaps;
+ vector<pair<int, int>> gaps;
helper->SetUp(0, 0, 0, 0, true, gaps, gaps, 0, true, false);
vector<Rule> rules = extractor->ExtractRules(phrase, phrase_location);
@@ -133,7 +133,7 @@ TEST_F(RuleExtractorTest, TestExtractRulesNoExtremities) {
PhraseLocation phrase_location(matching, 1);
EXPECT_CALL(*helper, GetLinksSpans(_, _, _, _, _)).Times(1);
- vector<pair<int, int> > gaps(3);
+ vector<pair<int, int>> gaps(3);
// Set FindFixPoint to return true. The number of gaps equals the number of
// nonterminals, so we won't add any extremities.
helper->SetUp(0, 0, 0, 0, true, gaps, gaps, 0, true, true);
@@ -155,7 +155,7 @@ TEST_F(RuleExtractorTest, TestExtractRulesAddExtremities) {
SetArgReferee<2>(links),
SetArgReferee<3>(links)));
- vector<pair<int, int> > gaps;
+ vector<pair<int, int>> gaps;
// Set FindFixPoint to return true. The number of gaps equals the number of
// nonterminals, so we won't add any extremities.
helper->SetUp(0, 0, 2, 3, true, gaps, gaps, 0, true, true);