1 ;; Tests for functions around indentation
3 (add-to-list 'load-path
".")
7 (ert-deftest indent-asserts
()
8 "Check some assertions."
9 (should (equal ert-Buf-point-char
"\^@"))
10 (should (equal ert-Buf-mark-char
"\^?"))
13 (defun indent-for-tab (&optional count
)
14 "Wrapper to call `indent-for-tab-command' COUNT times defaulting to 1."
15 (setq count
(or count
1))
18 (indent-for-tab-command)))
20 (ert-deftest indent-for-tab-command
()
21 "Tests for `indent-for-tab-command'."
22 (let ((rst-indent-width 2)
24 (rst-indent-literal-normal 3)
25 (rst-indent-literal-minimized 2)
26 (rst-indent-comment 3))
27 (should (ert-equal-buffer
32 (should (ert-equal-buffer
41 (should (ert-equal-buffer
50 (should (ert-equal-buffer
61 (should (ert-equal-buffer
72 (should (ert-equal-buffer
83 (should (ert-equal-buffer
94 (should (ert-equal-buffer
111 (should (ert-equal-buffer
128 (should (ert-equal-buffer
143 (should (ert-equal-buffer
158 (should (ert-equal-buffer
173 (should (ert-equal-buffer
188 (should (ert-equal-buffer
217 (should (ert-equal-buffer
246 (should (ert-equal-buffer
275 (should (ert-equal-buffer
304 (should (ert-equal-buffer
333 (should (ert-equal-buffer
362 (should (ert-equal-buffer
391 (should (ert-equal-buffer
420 (should (ert-equal-buffer