diff options
| author | Phillip Lord <phillip.lord@russet.org.uk> | 2020-04-12 18:11:20 +0000 |
|---|---|---|
| committer | Phillip Lord <phillip.lord@russet.org.uk> | 2020-04-12 18:11:20 +0000 |
| commit | b05f06a4b15bffffdcaeb1a30482afd94c12746a (patch) | |
| tree | 691f7c78eb21906a03bdc3896c4bc719930d7a3f /robot/cram-run.el | |
| parent | 0c89f344ce019e03df278578414617b74034031b (diff) | |
| parent | ec2c168797380c7e41c13a9260c79139bed3300c (diff) | |
| download | org-drill-b05f06a4b15bffffdcaeb1a30482afd94c12746a.tar.gz org-drill-b05f06a4b15bffffdcaeb1a30482afd94c12746a.zip | |
Merge branch 'branweb/fix-cram-mode' into 'master'
Allow Creating New Session in Cram Mode
See merge request phillord/org-drill!9
Diffstat (limited to 'robot/cram-run.el')
| -rw-r--r-- | robot/cram-run.el | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/robot/cram-run.el b/robot/cram-run.el new file mode 100644 index 0000000..a754013 --- /dev/null +++ b/robot/cram-run.el @@ -0,0 +1,24 @@ +(load-file "robot/robot.el") +(load-file "org-drill.el") + +;; setup +(copy "basic-run.org" "cram-run-copy.org") + +;; normal run +(find "cram-run-copy.org") +(org-drill) +(set-buffer-modified-p nil) +(kill-buffer) +(robot-check-cards-seen 3) + +;; cram run with all cards reviewed less than `org-drill-cram-hours` +;; ago, so we expect no new cards to be seen +(find "cram-run-copy.org") +(org-drill-cram) +(robot-check-cards-seen 3) + +;; cram run that should include all cards, so we expect seen cards to +;; double +(setq org-drill-cram-hours 0) +(org-drill-cram) +(robot-check-cards-seen-and-die 6) |
