summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2016-05-02 08:57:30 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-05-02 08:59:25 -0700
commit8f36614512d479fb76764bf013ad23550696c5a6 (patch)
treed827a0cb5115871957a68e43bd97cd73df5892da
parent628053101d65749aecad5cc59d4dc0d0e7a8098d (diff)
downloademacs-8f36614512d479fb76764bf013ad23550696c5a6.tar.gz
Add electric-quote-string unit test
* test/automated/electric-tests.el (electric-quote-string): New test.
-rw-r--r--test/automated/electric-tests.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/automated/electric-tests.el b/test/automated/electric-tests.el
index 107b2e79fb6..afd707667b8 100644
--- a/test/automated/electric-tests.el
+++ b/test/automated/electric-tests.el
@@ -584,5 +584,13 @@ baz\"\""
(skip-chars-backward "\"")
(mark-sexp -1)))
+
+;;; Electric quotes
+(define-electric-pair-test electric-quote-string
+ "" "'" :expected-string "'" :expected-point 2
+ :fixture-fn #'electric-quote-local-mode
+ :bindings '((electric-quote-string . t))
+ :test-in-comments nil :test-in-strings nil)
+
(provide 'electric-tests)
;;; electric-tests.el ends here