[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/electric-pair-cleanup-and-49518-bugfix b0c34e3 4/4: Test electri
From: |
João Távora |
Subject: |
scratch/electric-pair-cleanup-and-49518-bugfix b0c34e3 4/4: Test electric-pair-mode more closely in python-mode, too (bug#49518) |
Date: |
Sun, 19 Sep 2021 14:39:08 -0400 (EDT) |
branch: scratch/electric-pair-cleanup-and-49518-bugfix
commit b0c34e3c207be0450fddd70620c600cd546751f2
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Test electric-pair-mode more closely in python-mode, too (bug#49518)
* 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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/lisp/electric-tests.el b/test/lisp/electric-tests.el
index 235f460..85a8e23 100644
--- a/test/lisp/electric-tests.el
+++ b/test/lisp/electric-tests.el
@@ -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)))