Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
キーボードマクロを使ったテストを追加します。
テスト用の一時辞書を設定した上で一時バッファでキーボードマクロ等を実行し、バッファの内容やユーザ辞書の内容を確認するマクロを定義して使っています。詳細は
test-utils.elのskk-define-e2e-testを参照してください。テストは概ねDDSKKのマニュアルの「基本的な使い方」と「便利な応用機能」に沿っています。
ただし、ソースコードが別ファイルになっている機能はテストも別ファイルとして実装しています。
例
実行方法
make clean make elc make testDockerでEmacsの各バージョンで実行する場合
基本的にカバーしていないもの
skk-hiragana-regionなど)。スキップしているテスト
skk-henkan-in-minibuff/test4(再帰的辞書登録): Emacs 28以前で上手く動作せず。要調査。skk-process-prefix-or-suffix/test1(接頭辞・接尾辞): Emacs 28以前で上手く動作せず。要調査。skk-henkan-in-minibuff/test6(.で強制的に辞書登録モードに入る): ミニバッファに表示されていた最初の候補が登録される。別途イシューを立てる予定。skk-sticky/test1(skk-sticky-keyにより任意のキーで変換位置を指定する): SKKのロード時に設定する必要がある。skk-jisx0213/test1(JIS X 0213で追加された文字を含む候補を除外する): 新しいEmacsではfind-charset-stringが返す値が変わったらしく、動かない。別途イシューを立てる予定。skk-jisx0201/test1(半角カナモード): SKKのロード時に設定する必要がある。skk-isearch/test1(skk-isearch):skk-setupでの設定が必要。