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

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

[elpa] externals/phps-mode 7b8cea3 163/405: Added failing indentation te


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 7b8cea3 163/405: Added failing indentation test for class multiple implements
Date: Sat, 13 Jul 2019 10:00:05 -0400 (EDT)

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

    Added failing indentation test for class multiple implements
---
 phps-mode-test-functions.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index d0d6d5d..bedaedc 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -90,6 +90,12 @@
    (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (1 0)) (5 (1 0)) (6 (1 
0)) (7 (1 0)) (8 (1 0))) (phps-mode-test-functions--hash-to-list 
(phps-mode-functions-get-lines-indent)))))
 
   (phps-mode-test-with-buffer
+   "<?php\nclass MyClass extends MyAbstract implements\n    myInterface,\n    
myInterface2\n{\n}\n"
+   "Class multi-line implements"
+   (message "Tokens: %s" phps-mode-lexer-tokens)
+   (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (1 0)) (5 (0 0)) (6 (0 
0))) (phps-mode-test-functions--hash-to-list 
(phps-mode-functions-get-lines-indent)))))
+
+  (phps-mode-test-with-buffer
    "<?php\n$str = <<<'EOD'\nExample of string\nspanning multiple lines\nusing 
nowdoc syntax.\nEOD;\n"
    "Multi-line NOWDOC string"
    (message "Tokens: %s" phps-mode-lexer-tokens)



reply via email to

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