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

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

[elpa] externals/phps-mode dfb0427 151/405: Added unit test for round an


From: Stefan Monnier
Subject: [elpa] externals/phps-mode dfb0427 151/405: Added unit test for round and square bracket expressions
Date: Sat, 13 Jul 2019 10:00:03 -0400 (EDT)

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

    Added unit test for round and square bracket expressions
---
 phps-mode-test-functions.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index c9489ac..ab63e80 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -68,7 +68,10 @@
    "DOC-COMMENT"
    (should (equal '((1 (0 0)) (2 (0 0)) (3 (0 1)) (4 (0 1))) 
(phps-mode-test-functions--hash-to-list 
(phps-mode-functions-get-lines-indent)))))
 
-  ;; TODO round and square bracket expressions
+  (phps-mode-test-with-buffer
+   "<?php\nmyFunction(\n    array(\n        23,\n        [\n            25\n   
     ]\n    )\n);"
+   "Round and square bracket expressions"
+   (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (2 0)) (5 (2 0)) (6 (3 
0)) (7 (2 0)) (8 (1 0)) (9 (0 0))) (phps-mode-test-functions--hash-to-list 
(phps-mode-functions-get-lines-indent)))))
 
   ;; TODO CASE, DEFAULT
 



reply via email to

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