From 9710f6befb1bd4eee2d508d7baaee95e825a68dc Mon Sep 17 00:00:00 2001 From: Slawomir Grochowski Date: Mon, 19 Aug 2024 12:30:49 +0200 Subject: [PATCH] testing/lisp/test-org-colview.el: add test to pass to fix a bug --- testing/lisp/test-org-colview.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testing/lisp/test-org-colview.el b/testing/lisp/test-org-colview.el index 6b603c31b..8615ef760 100644 --- a/testing/lisp/test-org-colview.el +++ b/testing/lisp/test-org-colview.el @@ -90,7 +90,12 @@ (should (equal `(("ITEM" "ITEM" nil "+" "%.1f")) (org-columns-compile-format - "%ITEM{+;%.1f}")))) + "%ITEM{+;%.1f}"))) + (should + ;; Bug - when the title is empty, the regular expression will not capture the operator. + (equal '(("ITEM" "ITEM" nil "X" nil)) + (org-columns-compile-format + "%ITEM(){X}")))) (ert-deftest test-org-colview/substring-below-width () "Test `org-columns--truncate-below-width'." -- 2.30.2