aboutsummaryrefslogtreecommitdiff
path: root/test-from-git
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 04:38:48 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 04:38:48 -0500
commit4e42bc641db25ee5b67ca5960f63defd65d3e771 (patch)
tree19ad3ffffb22d28b9a8f939906be25b000720edf /test-from-git
parent0630379a86eff6748c3c3f5e9b784584daa6e2cb (diff)
downloadorg-drill-4e42bc641db25ee5b67ca5960f63defd65d3e771.tar.gz
org-drill-4e42bc641db25ee5b67ca5960f63defd65d3e771.zip
test: add multicloze weighted-presenter dispatch coverage
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)
Diffstat (limited to 'test-from-git')
0 files changed, 0 insertions, 0 deletions