<feed xmlns='http://www.w3.org/2005/Atom'>
<title>org-drill/tests/test-org-drill-presentation-prompt.el, branch main</title>
<subtitle>Spaced-repetition flashcards for Org Mode
</subtitle>
<id>https://git.cjennings.net/org-drill/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/org-drill/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/'/>
<updated>2026-05-05T19:51:22+00:00</updated>
<entry>
<title>test: cover present-simple-card-with-typed-answer</title>
<updated>2026-05-05T19:51:22+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-05T19:51:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/commit/?id=318044608dedd94dd69550c0365036935480554c'/>
<id>urn:sha1:318044608dedd94dd69550c0365036935480554c</id>
<content type='text'>
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%.
</content>
</entry>
<entry>
<title>test: cover org-drill-presentation-prompt-in-buffer</title>
<updated>2026-05-05T19:49:14+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-05T19:49:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/commit/?id=14d75bc5c9a35e26f80944010a494d9589c26c2f'/>
<id>urn:sha1:14d75bc5c9a35e26f80944010a494d9589c26c2f</id>
<content type='text'>
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%.
</content>
</entry>
<entry>
<title>test: presentation-prompt return values and dispatcher</title>
<updated>2026-05-05T09:40:45+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-05T09:40:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/commit/?id=824764777d899554c1ce64387b6adac14cbaf3d9'/>
<id>urn:sha1:824764777d899554c1ce64387b6adac14cbaf3d9</id>
<content type='text'>
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)
</content>
</entry>
</feed>
