| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
I added a test for `org-drill-present-simple-card-with-typed-answer'
that mocks `prompt-for-string' and the surrounding hide-* helpers, then
asserts the presenter forwards the session and returns the prompt's
result.
Coverage moved from 94.4% to 94.8%.
|
| |
|
|
|
|
|
|
|
|
| |
I extended the presentation-prompt tests with cases for the in-buffer
variant: default prompt assembled when none is supplied, explicit
prompt fed straight through, drill-answer cleared on entry, and the
session's exit-kind flowing back to the caller after recursive-edit
returns. Recursive-edit, display-buffer, and the timer are all mocked.
Coverage moved from 93.2% to 94.4%.
|
|
|
7 ERT tests covering the card-prompt return-value contract:
- org-drill-presentation-prompt-in-mini-buffer with input-pending-p
and read-key-sequence both mocked: quit → nil, edit → 'edit,
skip → 'skip, any-other-key → t
- explicit PROMPT arg appears in the formatted full-prompt
- org-drill-presentation-prompt dispatcher routes by
org-drill-presentation-prompt-with-typing (nil → mini-buffer
variant, non-nil → in-buffer variant)
|