aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-drill-default-algorithm.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-27 21:28:20 -0500
committerCraig Jennings <c@cjennings.net>2026-05-27 21:28:20 -0500
commit6e3f2d278d9598c6838428ee510445f51888bb30 (patch)
tree98ca78149861191d32012a4148b1ce239cf08a75 /tests/test-org-drill-default-algorithm.el
parenteaa0a53f807b44d8a4bf72f3de562b011f69756e (diff)
downloadorg-drill-6e3f2d278d9598c6838428ee510445f51888bb30.tar.gz
org-drill-6e3f2d278d9598c6838428ee510445f51888bb30.zip
refactor: take card-state in org-drill-determine-next-interval-sm2
Stage 3 of #147. sm2 now takes (state quality) instead of seven positional args, binding the recall fields from the struct at the top so the algorithm body is unchanged. The smart-reschedule and hypothetical-next-review-date call sites pass the state they already hold, which drops the per-branch accessor unpacking. I kept the return as the existing positional list rather than restructuring it too. The goal is reducing the input signature, and changing the return shape would force the shared test extractors and every return-read to change for no real gain. A testutil adapter, test-scheduler--call-sm2, packs positional args into the struct, so the test call sites stay readable as the documented algorithm inputs and the migration is a one-symbol rename per call.
Diffstat (limited to 'tests/test-org-drill-default-algorithm.el')
0 files changed, 0 insertions, 0 deletions