Skip to content

Fix require lists in test files - #257

Open
taku0 wants to merge 1 commit into
skk-dev:masterfrom
taku0:fix-skk-tankan-test
Open

taku0 wants to merge 1 commit into
skk-dev:masterfrom
taku0:fix-skk-tankan-test

Conversation

@taku0

@taku0 taku0 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

skk-autoloads.elが無い状態でmake testをすると、テストの実行に失敗するのを修正します。

具体的にはskk-tankan-test.elを実行する際、skk-todayがvoidとなるため@が入力されず、単漢変換のテストに失敗します。
また、テストファイル単体をロードして実行した場合、skk-cus等がロードされないためエラーとなります。

これらの問題を修正するために各テストファイルで各ファイルを明示的にrequireします。

The test suite runs against the raw source tree, where skk-autoloads.el
does not exist, so autoloaded functions are void unless their defining
file is explicitly required.  In particular, skk-tankan-test.el failed
because `skk-today' (bound to "@" and defined in skk-gadget.el) was
void: `skk-kana-input' silently drops the key when the rule function is
not fboundp, so "@" never reached the henkan key and tankan conversion
did not trigger.

Give every test file the same require list, including skk-gadget, so
each of them can also be run standalone.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant