Skip to content

Commit

Permalink
qrhl-test: check translation of \sub
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriktews committed Oct 31, 2023
1 parent 0dd686e commit 2a9a200
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ci/simple-tests/qrhl-test-input.el
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@

(message "load-qrhl-input test: Check loading of qRHL input method")
(find-file "test.qrhl")
;; Ideally we would do some simulated keypresses and check whether they
;; are translated correctly. But I don't know how. (Dominique)
(should (string= current-input-method "qrhl"))
)

;; To simulate typing, we put the keys into `unread-command-events'.
;; To process them normally, we enter a recursive edit. To abort the
;; recursive edit, we add \C-\M-c, the binding of
;; `exit-recursive-edit' to the simulated keys.
(setq unread-command-events (listify-key-sequence "*\\subC\C-\M-c"))
(recursive-edit)
(should (equal "*⇩C" (buffer-substring 1 (point)))))

0 comments on commit 2a9a200

Please sign in to comment.