branch: externals/hyperbole commit 613c51b0cadd32a0e43aba6ec3452111c750d33d Author: Mats Lidell <mats.lid...@lidells.se> Commit: GitHub <nore...@github.com>
Verify add-cell does not set no-fill attribute (#188) --- ChangeLog | 5 +++++ test/kotl-mode-tests.el | 14 +++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 340c44c573..16cc2b5e38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-04-18 Mats Lidell <ma...@gnu.org> + +* test/kotl-mode-tests.el (kotl-mode--add-cell-set-fill-attribute): Verify + add-cell do not set no-fill flag. + 2022-04-18 Bob Weiner <r...@gnu.org> * kotl/kotl-mode.el (kotl-mode:fill-cell): Fix issue where 'end' was set diff --git a/test/kotl-mode-tests.el b/test/kotl-mode-tests.el index 8bb18bc515..68850ef089 100644 --- a/test/kotl-mode-tests.el +++ b/test/kotl-mode-tests.el @@ -3,7 +3,7 @@ ;; Author: Mats Lidell <ma...@gnu.org> ;; ;; Orig-Date: 18-May-21 at 22:14:10 -;; Last-Mod: 2-Apr-22 at 23:58:08 by Mats Lidell +;; Last-Mod: 18-Apr-22 at 22:40:33 by Mats Lidell ;; ;; Copyright (C) 2021-2022 Free Software Foundation, Inc. ;; See the "HY-COPY" file for license information. @@ -546,5 +546,17 @@ (should (looking-at "1"))) (delete-file kotl-file)))) +(ert-deftest kotl-mode--add-cell-set-fill-attribute () + "Add cell shall set the fill attribute." + (let ((kotl-file (make-temp-file "hypb" nil ".kotl"))) + (unwind-protect + (progn + (find-file kotl-file) + (insert "1") + (should-not (kcell-view:get-attr 'no-fill)) + (kotl-mode:add-cell) + (should-not (kcell-view:get-attr 'no-fill))) + (delete-file kotl-file)))) + (provide 'kotl-mode-tests) ;;; kotl-mode-tests.el ends here