]> git.eshelyaron.com Git - emacs.git/commitdiff
Test electric-pair-mode more closely in python-mode, too (bug#49518)
authorJoão Távora <joaotavora@gmail.com>
Sun, 19 Sep 2021 16:08:41 +0000 (17:08 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 19 Sep 2021 16:20:43 +0000 (17:20 +0100)
* test/lisp/electric-tests.el (define-electric-pair-test): Also run
main tests for python-mode.  (pair-some-quotes-skip-others): Test
another slightly different pairing.

test/lisp/electric-tests.el

index 235f46056fa5c6313776ffedce1475ad9dac8f0a..85a8e23bfaf1480bbfc6370223451eff7d118651 100644 (file)
@@ -174,7 +174,7 @@ The buffer's contents should %s:
           expected-string
           expected-point
           bindings
-          (modes '(quote (ruby-mode js-mode)))
+          (modes '(quote (ruby-mode js-mode python-mode)))
           (test-in-comments t)
           (test-in-strings t)
           (test-in-code t)
@@ -297,7 +297,7 @@ The buffer's contents should %s:
 ;;; Quotes
 ;;;
 (define-electric-pair-test pair-some-quotes-skip-others
-  " \"\"      " "-\"\"-----" :skip-pair-string "-ps------"
+  " \"\"      " "-\"\"\"\"---" :skip-pair-string "-ps-p----"
   :test-in-strings nil
   :bindings `((electric-pair-text-syntax-table
                . ,prog-mode-syntax-table)))