emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 26ed7c7 2/3: Add a failing test for bug#44834


From: Lars Ingebrigtsen
Subject: master 26ed7c7 2/3: Add a failing test for bug#44834
Date: Mon, 11 Jan 2021 10:42:43 -0500 (EST)

branch: master
commit 26ed7c734557043827f02629dbba00031358e64a
Author: Anticrisis <anticrisisg@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Add a failing test for bug#44834
    
    * test/lisp/progmodes/tcl-tests.el (tcl-mode-namespace-indent-2):
    New, failing test (bug#44834).
    (tcl-mode-function-name-2):
    (tcl-mode-function-name-3): Fix names of the tests so that they're
    actually run.
    
    Copyright-paperwork-exempt: yes
---
 test/lisp/progmodes/tcl-tests.el | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/test/lisp/progmodes/tcl-tests.el b/test/lisp/progmodes/tcl-tests.el
index 8ff8547..cf1ed28 100644
--- a/test/lisp/progmodes/tcl-tests.el
+++ b/test/lisp/progmodes/tcl-tests.el
@@ -50,14 +50,14 @@
     (insert "proc notinthis {} {\n  # nothing\n}\n\n")
     (should-not (add-log-current-defun))))
 
-(ert-deftest tcl-mode-function-name ()
+(ert-deftest tcl-mode-function-name-2 ()
   (with-temp-buffer
     (tcl-mode)
     (insert "proc simple {} {\n  # nothing\n}")
     (backward-char 3)
     (should (equal "simple" (add-log-current-defun)))))
 
-(ert-deftest tcl-mode-function-name ()
+(ert-deftest tcl-mode-function-name-3 ()
   (with-temp-buffer
     (tcl-mode)
     (insert "proc inthis {} {\n  # nothing\n")
@@ -72,6 +72,16 @@
       (indent-region (point-min) (point-max))
       (should (equal (buffer-string) text)))))
 
+;; From bug#44834
+(ert-deftest tcl-mode-namespace-indent-2 ()
+  :expected-result :failed
+  (with-temp-buffer
+    (tcl-mode)
+    (let ((text "namespace eval Foo {\n    proc foo {} {}\n\n    proc bar 
{}{}}\n"))
+      (insert text)
+      (indent-region (point-min) (point-max))
+      (should (equal (buffer-string) text)))))
+
 (provide 'tcl-tests)
 
 ;;; tcl-tests.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]