Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Jan 19, 2025
1 parent 2c976f6 commit 6d0bd41
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/testpinyin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,11 @@ void testQuickPhraseTrigger(Instance *instance) {
FCITX_ASSERT(ic->inputPanel().preedit().toString() == "www.");

ic->reset();
testfrontend->call<ITestFrontend::keyEvent>(uuid, Key("a"), false);
testfrontend->call<ITestFrontend::keyEvent>(uuid, Key("b"), false);
testfrontend->call<ITestFrontend::keyEvent>(uuid, Key("b"), false);
testfrontend->call<ITestFrontend::keyEvent>(uuid, Key("s"), false);
testfrontend->call<ITestFrontend::keyEvent>(uuid, Key("."), false);
FCITX_ASSERT(ic->inputPanel().preedit().toString() == "a.");
FCITX_ASSERT(ic->inputPanel().preedit().toString() == "bbs.");

ic->reset();
testfrontend->call<ITestFrontend::keyEvent>(uuid, Key("u"), false);
Expand Down

0 comments on commit 6d0bd41

Please sign in to comment.