aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-drill-presentation-prompt.el
Commit message (Collapse)AuthorAgeFilesLines
* test: cover present-simple-card-with-typed-answerCraig Jennings2026-05-051-0/+18
| | | | | | | | | 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%.
* test: cover org-drill-presentation-prompt-in-bufferCraig Jennings2026-05-051-0/+61
| | | | | | | | | | 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%.
* test: presentation-prompt return values and dispatcherCraig Jennings2026-05-051-0/+125
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)