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

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

[elpa] externals/phps-mode c37b234 334/405: Added failing test for inden


From: Stefan Monnier
Subject: [elpa] externals/phps-mode c37b234 334/405: Added failing test for indent in concatenated string inside function arguments
Date: Sat, 13 Jul 2019 10:00:43 -0400 (EDT)

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

    Added failing test for indent in concatenated string inside function 
arguments
---
 phps-mode-test-functions.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index 982a9d9..5f7ec4b 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -187,6 +187,11 @@
    "Assignment with square bracketed array"
    (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (2 0)) (5 (2 0)) (6 (1 
0)) (7 (0 0))) (phps-mode-test-hash-to-list 
(phps-mode-functions-get-lines-indent)))))
 
+  (phps-mode-test-with-buffer
+   "<?php\n$options = array(\n    'blaha' .\n        'blaha',\n    123,\n    
'blaha'\n);"
+   "Assignment with square bracketed array"
+   (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (2 0)) (5 (1 0)) (6 (1 
0)) (7 (0 0))) (phps-mode-test-hash-to-list 
(phps-mode-functions-get-lines-indent)))))
+
   )
 
 (defun phps-mode-test-functions-get-lines-indent-psr-2 ()
@@ -416,7 +421,7 @@
 
   )
 
-(defun phps-mode-test-functions-get-lines-lindent-if ()
+(defun phps-mode-test-functions-get-lines-indent-if ()
   "Test for multi-line if expressions."
 
   (phps-mode-test-with-buffer
@@ -800,7 +805,7 @@
   "Run test for functions."
   ;; (setq debug-on-error t)
   ;; (setq phps-mode-functions-verbose t)
-  (phps-mode-test-functions-get-lines-lindent-if)
+  (phps-mode-test-functions-get-lines-indent-if)
   (phps-mode-test-functions-get-lines-indent-classes)
   (phps-mode-test-functions-get-lines-indent-inline-if)
   (phps-mode-test-functions-get-lines-indent-alternative-if)



reply via email to

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