diff options
| author | João Távora | 2021-09-19 17:08:41 +0100 |
|---|---|---|
| committer | João Távora | 2021-09-19 17:20:43 +0100 |
| commit | b0c34e3c207be0450fddd70620c600cd546751f2 (patch) | |
| tree | f647df769472df02041bae7b195d602ea8302cba | |
| parent | 44870df239ba681e826795fc54d69e8d9a517826 (diff) | |
| download | emacs-b0c34e3c207be0450fddd70620c600cd546751f2.tar.gz emacs-b0c34e3c207be0450fddd70620c600cd546751f2.zip | |
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.
| -rw-r--r-- | test/lisp/electric-tests.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/electric-tests.el b/test/lisp/electric-tests.el index 235f46056fa..85a8e23bfaf 100644 --- a/test/lisp/electric-tests.el +++ b/test/lisp/electric-tests.el | |||
| @@ -174,7 +174,7 @@ The buffer's contents should %s: | |||
| 174 | expected-string | 174 | expected-string |
| 175 | expected-point | 175 | expected-point |
| 176 | bindings | 176 | bindings |
| 177 | (modes '(quote (ruby-mode js-mode))) | 177 | (modes '(quote (ruby-mode js-mode python-mode))) |
| 178 | (test-in-comments t) | 178 | (test-in-comments t) |
| 179 | (test-in-strings t) | 179 | (test-in-strings t) |
| 180 | (test-in-code t) | 180 | (test-in-code t) |
| @@ -297,7 +297,7 @@ The buffer's contents should %s: | |||
| 297 | ;;; Quotes | 297 | ;;; Quotes |
| 298 | ;;; | 298 | ;;; |
| 299 | (define-electric-pair-test pair-some-quotes-skip-others | 299 | (define-electric-pair-test pair-some-quotes-skip-others |
| 300 | " \"\" " "-\"\"-----" :skip-pair-string "-ps------" | 300 | " \"\" " "-\"\"\"\"---" :skip-pair-string "-ps-p----" |
| 301 | :test-in-strings nil | 301 | :test-in-strings nil |
| 302 | :bindings `((electric-pair-text-syntax-table | 302 | :bindings `((electric-pair-text-syntax-table |
| 303 | . ,prog-mode-syntax-table))) | 303 | . ,prog-mode-syntax-table))) |