aboutsummaryrefslogtreecommitdiff
path: root/test-from-git
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 04:05:23 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 04:05:23 -0500
commit784c831352ec2a60bba5199503fef7d80070a315 (patch)
tree11c9bc4718b76ae34880e987f5a680444b2bf8a5 /test-from-git
parent94ab747731c24ea2170ecd287980a272d9de244c (diff)
downloadorg-drill-784c831352ec2a60bba5199503fef7d80070a315.tar.gz
org-drill-784c831352ec2a60bba5199503fef7d80070a315.zip
test: add round-trip tests for item-data save/load
11 ERT tests covering org-drill-get-item-data and store-item-data. The user-facing contract: rate a card → state persists across sessions. Three branches tested: virgin item (zero-list sentinel), modern DRILL_* properties (read all six fields, partial-set falls back to defaults), and legacy LEARN_DATA backward compat (precedence over modern, graceful fallthrough on malformed data). Round-trip tests document a deliberate type quirk: rounded fields (interval, meanq, ease) come back as floats because org-drill-round-float returns float; counters (repeats, failures, total-repeats) stay int. Numerically lossless and scheduler-safe.
Diffstat (limited to 'test-from-git')
0 files changed, 0 insertions, 0 deletions