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

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

[elpa] externals/phps-mode 9659ab4 174/405: Added failing test for doc-c


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 9659ab4 174/405: Added failing test for doc-comments are namespace and class
Date: Sat, 13 Jul 2019 10:00:07 -0400 (EDT)

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

    Added failing test for doc-comments are namespace and class
---
 phps-mode-test-functions.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index 5757239..bcc74b4 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -170,6 +170,11 @@
    (should (equal '((1 (0 0)) (2 (0 0)) (3 (0 1)) (4 (0 1)) (5 (0 0))) 
(phps-mode-test-functions--hash-to-list 
(phps-mode-functions-get-lines-indent)))))
 
   (phps-mode-test-with-buffer
+   "<?php\n/**\n *\n */\nnamespace Aomebo\n{\n    /**\n     *\n     */\n    
class Base\n    {\n    }\n}\n"
+   "Namespace and class with doc-comments"
+   (should (equal '((1 (0 0)) (2 (0 0)) (3 (0 1)) (4 (0 1)) (5 (0 0)) (6 (0 
0)) (7 (1 0)) (8 (1 1)) (9 (1 1)) (10 (1 0)) (11 (1 0)) (12 (1 0)) (13 (0 0))) 
(phps-mode-test-functions--hash-to-list 
(phps-mode-functions-get-lines-indent)))))
+
+  (phps-mode-test-with-buffer
    "<?php\n/** @define _SYSTEM_START_TIME_     Startup time for system 
*/\ndefine('_SYSTEM_START_TIME_', microtime(true));\necho 'statement';\n"
    "Statement after a define() with a doc-comment"
    (should (equal '((1 (0 0)) (2 (0 0)) (3 (0 0)) (4 (0 0))) 
(phps-mode-test-functions--hash-to-list 
(phps-mode-functions-get-lines-indent)))))



reply via email to

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