strengthen core unit tests

Add table-driven dictionary miss and language-switch state coverage, regress stale candidates after backspace, and clear them before dictionary refresh. Keep IPC and runtime-created file checks outside the unit runner.
This commit is contained in:
2026-08-11 21:12:23 +09:00
parent 9b3f2c46f0
commit 82276bf37f
10 changed files with 149 additions and 464 deletions

View File

@@ -75,16 +75,13 @@ static const struct ct_test tests[] = {
{ "telex/backspace", vietnamese_backspace },
{ "telex/state-lifetime", vietnamese_state_lifetime },
{ "engine/clears-candidates", engine_clears_candidates },
{ "engine/backspace-clears-candidates", engine_backspace_clears_candidates },
{ "engine/selects-visible-candidate", engine_selects_visible_candidate },
{ "engine/commit-contract", engine_commit_contract },
{ "engine/language-switch-state", engine_language_switch_state },
{ "engine/telex-history-bound", engine_telex_history_bound },
{ "dict/candidates", dictionary_candidates },
{ "ipc/request-codec", ipc_request_codec },
{ "ipc/response-pack-boundaries", ipc_response_pack_boundaries },
{ "ipc/response-codec-drain", ipc_response_codec_and_drain },
{ "ipc/truncated-frame", ipc_truncated_frame },
{ "ipc/fragmented-request", ipc_fragmented_request },
{ "ipc/closed-peer", ipc_closed_peer },
{ "dict/misses-clear-result", dictionary_misses_clear_result },
};
void