aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-drill-multicloze-dispatch.el
Commit message (Collapse)AuthorAgeFilesLines
* test: add multicloze weighted-presenter dispatch coverageCraig Jennings2026-05-051-0/+143
8 ERT tests covering hide1-firstmore, show1-lastmore, show1-firstless. Each wraps a cond that selects between common and uncommon multicloze presenters based on org-drill-cloze-text-weight and the entry's total-repeats counter. Underlying presenter functions are mocked to no-op stubs that record which one was selected — the branch logic is what's under test, not the (interactive) cloze-prompt itself. Cases covered per function: - nil weight → fall back to non-weighted variant - invalid weight (non-positive int) → error - non-trigger rep → common path (hide-first / show-last / skip-first) - trigger rep → uncommon path (hide-n with appropriate force flags)