Fix recent ses-tests mistakes (bug#5852)

* test/lisp/ses-tests.el
(ses-set-formula-write-cells-with-changed-references):
Quote constant list.  Remove unused variable.
This commit is contained in:
Mattias Engdegård 2024-01-14 14:10:17 +01:00
parent d4b1e2c3b6
commit a83e60eccb

View file

@ -246,7 +246,7 @@ to `ses--bar' and inserting a row, makes A2 value empty, and `ses--bar' equal to
When setting a formula has some cell with changed references, this
cell has to be rewritten to data area."
(let ((ses-initial-size '(4 . 3))
ses-after-entry-functions beg)
(ses-after-entry-functions nil))
(with-temp-buffer
(ses-mode)
(dolist (c '((0 1 1); B1
@ -257,7 +257,7 @@ cell has to be rewritten to data area."
(apply 'ses-calculate-cell (list (car c) (cadr c) nil)))
(ses-cell-set-formula 2 1 '(+ B2 A3)); B3
(ses-command-hook)
(ses-cell-set-formula 3 1 (+ B3 A4)); B4
(ses-cell-set-formula 3 1 '(+ B3 A4)); B4
(ses-command-hook)
(should (equal (ses-cell-references 1 1) '(B3)))
(ses-mode)