We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a32ab9 commit 7ef81e7Copy full SHA for 7ef81e7
1 file changed
test/testpinyinime_unit.cpp
@@ -8,6 +8,7 @@
8
#include <iterator>
9
#include <memory>
10
#include <fcitx-utils/log.h>
11
+#include "libime/core/historybigram.h"
12
#include "libime/core/userlanguagemodel.h"
13
#include "libime/pinyin/pinyincontext.h"
14
#include "libime/pinyin/pinyincorrectionprofile.h"
@@ -55,8 +56,8 @@ int main() {
55
56
"ni'hao'zhong'guo", "你好中国"));
57
c.select(std::distance(c.candidates().begin(), iter));
58
c.learn();
- FCITX_ASSERT(ime.dict()->lookupWord(PinyinDictionary::UserDict,
59
- "ni'hao'zhong'guo", "你好中国"));
+ FCITX_ASSERT(ime.model()->history().containsBigram("你", "好"));
60
+ FCITX_ASSERT(ime.model()->history().containsBigram("好", "中国"));
61
62
c.setUseShuangpin(true);
63
0 commit comments