diff options
author | Paul Baltescu <pauldb89@gmail.com> | 2013-11-25 18:19:13 +0000 |
---|---|---|
committer | Paul Baltescu <pauldb89@gmail.com> | 2013-11-25 18:19:13 +0000 |
commit | bd6fef61505b19989cc327620632e8e7efda2e6e (patch) | |
tree | 40d01e5319d1b00ea199812bda62349adbfb73bc /extractor/data_array_test.cc | |
parent | 9834df1efceb27b140f18f47e711d3fff6c7ecb8 (diff) |
Reduce unordered_map calls.
Diffstat (limited to 'extractor/data_array_test.cc')
-rw-r--r-- | extractor/data_array_test.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/extractor/data_array_test.cc b/extractor/data_array_test.cc index 6c329e34..b6b56561 100644 --- a/extractor/data_array_test.cc +++ b/extractor/data_array_test.cc @@ -58,16 +58,12 @@ TEST_F(DataArrayTest, TestGetData) { TEST_F(DataArrayTest, TestVocabulary) { EXPECT_EQ(9, source_data.GetVocabularySize()); - EXPECT_TRUE(source_data.HasWord("mere")); EXPECT_EQ(4, source_data.GetWordId("mere")); EXPECT_EQ("mere", source_data.GetWord(4)); - EXPECT_FALSE(source_data.HasWord("banane")); EXPECT_EQ(11, target_data.GetVocabularySize()); - EXPECT_TRUE(target_data.HasWord("apples")); EXPECT_EQ(4, target_data.GetWordId("apples")); EXPECT_EQ("apples", target_data.GetWord(4)); - EXPECT_FALSE(target_data.HasWord("bananas")); } TEST_F(DataArrayTest, TestSentenceData) { |