summaryrefslogtreecommitdiff
path: root/extractor/rule_extractor_test.cc
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-04-01 17:23:25 +0100
committerPaul Baltescu <pauldb89@gmail.com>2013-04-01 17:23:25 +0100
commit581ecdbad3c691e4e749098bd8568d9cdc48323c (patch)
treeaec320efba6c2f02898f30634c534467652d0a2e /extractor/rule_extractor_test.cc
parent992e84500abeec31341e8220718ca29d126d93df (diff)
Minor speedup: pass sentence_id around.
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 1b543fc9..5c1501c7 100644
--- a/extractor/rule_extractor_test.cc
+++ b/extractor/rule_extractor_test.cc
@@ -32,12 +32,12 @@ class RuleExtractorTest : public Test {
.WillRepeatedly(Return(10));
helper = make_shared<MockRuleExtractorHelper>();
- EXPECT_CALL(*helper, CheckAlignedTerminals(_, _, _))
+ EXPECT_CALL(*helper, CheckAlignedTerminals(_, _, _, _))
.WillRepeatedly(Return(true));
- EXPECT_CALL(*helper, CheckTightPhrases(_, _, _))
+ EXPECT_CALL(*helper, CheckTightPhrases(_, _, _, _))
.WillRepeatedly(Return(true));
unordered_map<int, int> source_indexes;
- EXPECT_CALL(*helper, GetSourceIndexes(_, _, _))
+ EXPECT_CALL(*helper, GetSourceIndexes(_, _, _, _))
.WillRepeatedly(Return(source_indexes));
vocabulary = make_shared<MockVocabulary>();
@@ -78,7 +78,7 @@ TEST_F(RuleExtractorTest, TestExtractRulesAlignedTerminalsFail) {
vector<int> matching = {2};
PhraseLocation phrase_location(matching, 1);
EXPECT_CALL(*helper, GetLinksSpans(_, _, _, _, _)).Times(1);
- EXPECT_CALL(*helper, CheckAlignedTerminals(_, _, _))
+ EXPECT_CALL(*helper, CheckAlignedTerminals(_, _, _, _))
.WillRepeatedly(Return(false));
vector<Rule> rules = extractor->ExtractRules(phrase, phrase_location);
EXPECT_EQ(0, rules.size());
@@ -90,7 +90,7 @@ TEST_F(RuleExtractorTest, TestExtractRulesTightPhrasesFail) {
vector<int> matching = {2};
PhraseLocation phrase_location(matching, 1);
EXPECT_CALL(*helper, GetLinksSpans(_, _, _, _, _)).Times(1);
- EXPECT_CALL(*helper, CheckTightPhrases(_, _, _))
+ EXPECT_CALL(*helper, CheckTightPhrases(_, _, _, _))
.WillRepeatedly(Return(false));
vector<Rule> rules = extractor->ExtractRules(phrase, phrase_location);
EXPECT_EQ(0, rules.size());