Fix: native unit test build.
Change-Id: Id2bd4b60d6a4023815a630ebb3059a435b72c193
This commit is contained in:
parent
c096100b01
commit
0cd1f222fd
1 changed files with 2 additions and 2 deletions
|
@ -108,14 +108,14 @@ TEST(LanguageModelDictContentTest, TestGetWordProbability) {
|
||||||
languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(1), wordId,
|
languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(1), wordId,
|
||||||
&bigramProbabilityEntry);
|
&bigramProbabilityEntry);
|
||||||
EXPECT_EQ(bigramProbability, languageModelDictContent.getWordAttributes(prevWordIds, wordId,
|
EXPECT_EQ(bigramProbability, languageModelDictContent.getWordAttributes(prevWordIds, wordId,
|
||||||
nullptr /* headerPolicy */).getProbability());
|
false /* mustMatchAllPrevWords */, nullptr /* headerPolicy */).getProbability());
|
||||||
const ProbabilityEntry trigramProbabilityEntry(flag, trigramProbability);
|
const ProbabilityEntry trigramProbabilityEntry(flag, trigramProbability);
|
||||||
languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(1),
|
languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(1),
|
||||||
prevWordIds[1], &probabilityEntry);
|
prevWordIds[1], &probabilityEntry);
|
||||||
languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(2), wordId,
|
languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(2), wordId,
|
||||||
&trigramProbabilityEntry);
|
&trigramProbabilityEntry);
|
||||||
EXPECT_EQ(trigramProbability, languageModelDictContent.getWordAttributes(prevWordIds, wordId,
|
EXPECT_EQ(trigramProbability, languageModelDictContent.getWordAttributes(prevWordIds, wordId,
|
||||||
nullptr /* headerPolicy */).getProbability());
|
false /* mustMatchAllPrevWords */, nullptr /* headerPolicy */).getProbability());
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Reference in a new issue