emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/phps-mode 5d5ec06 313/405: Started on test for automati


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 5d5ec06 313/405: Started on test for automatic quotations
Date: Sat, 13 Jul 2019 10:00:39 -0400 (EDT)

branch: externals/phps-mode
commit 5d5ec06233544ef8492d757a54e1f4f4ab93c931
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    Started on test for automatic quotations
---
 phps-mode-test-functions.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index 7388a45..d1241a8 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -782,6 +782,15 @@
 
 
   ;; TODO Implement this
+  (phps-mode-test-with-buffer
+   "<?php\n$var = abc;"
+   "Double quotes around letters"
+   (goto-char 14)
+   (set-mark (point))
+   (forward-char 3)
+   (execute-kbd-macro (kbd "\""))
+   (let ((buffer-contents (buffer-substring-no-properties (point-min) 
(point-max))))
+     (should (equal buffer-contents "<?php\n$var = \"abc\";"))))
 
   )
 



reply via email to

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