aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-drill-default-algorithm.el
blob: 65cba1a70ae78bcb3e93c8129b61b50ba5746b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;;; test-org-drill-default-algorithm.el --- Pin the default scheduler  -*- lexical-binding: t; -*-

;;; Commentary:
;; The default for `org-drill-spaced-repetition-algorithm' is the algorithm a
;; brand-new user gets out of the box.  Issue #46 asked for that choice to be
;; reconsidered; the ADR-style comment above the defcustom in `org-drill.el'
;; records the reasoning.  Pinning the value in a test means an accidental
;; flip back surfaces in CI rather than as drift discovered months later.

;;; Code:

(require 'ert)
(require 'org-drill)

(ert-deftest test-org-drill-default-algorithm-is-simple8 ()
  "The default scheduler is Simple8.  See the ADR comment in org-drill.el."
  (should (eq 'simple8 (default-value 'org-drill-spaced-repetition-algorithm))))

(provide 'test-org-drill-default-algorithm)
;;; test-org-drill-default-algorithm.el ends here