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

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

[elpa] externals/phps-mode b2338cd 223/405: All tests for indentation pa


From: Stefan Monnier
Subject: [elpa] externals/phps-mode b2338cd 223/405: All tests for indentation passes
Date: Sat, 13 Jul 2019 10:00:17 -0400 (EDT)

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

    All tests for indentation passes
---
 phps-mode-test-functions.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index 195567f..dddd995 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -388,13 +388,13 @@
      (should (equal buffer-contents  "<?php\n/**\n* My first line\n* My second 
line\n **/\n"))))
 
   (phps-mode-test-with-buffer
-   "<?php\n$variable = array(\n    'random4');\n$variable = true;\n"
+   "<?php\n$variable = array(\n  'random4');\n$variable = true;\n"
    "Round bracket test 1"
    (goto-char 30)
    (phps-mode-functions-indent-line)
    ;; (message "Tokens %s point %s" phps-mode-lexer-tokens (point))
    (let ((buffer-contents (buffer-substring-no-properties (point-min) 
(point-max))))
-     (should (equal buffer-contents  "<?php\n$variable = 
array(\n'random4');\n$variable = true;\n"))))
+     (should (equal buffer-contents  "<?php\n$variable = array(\n    
'random4');\n$variable = true;\n"))))
 
   (phps-mode-test-with-buffer
    "<?php\nadd_filter(\n\"views_{$screen->id}\",'__return_empty_array'\n);"
@@ -533,12 +533,12 @@
      (should (equal buffer-contents "<?php\nif 
(empty($this->var)):\n$this->var = 'abc123';\nendif;"))))
 
   (phps-mode-test-with-buffer
-   "<?php\nif (empty($this->var)):\n$this->var = 'abc123';\n    endif;"
+   "<?php\nif (empty($this->var)):\n$this->var = 'abc123';\nendif;"
    "Alternative control structure test"
    (goto-char 35)
    (phps-mode-functions-indent-line)
    (let ((buffer-contents (buffer-substring-no-properties (point-min) 
(point-max))))
-     (should (equal buffer-contents "<?php\nif (empty($this->var)):\n    
$this->var = 'abc123';\n    endif;"))))
+     (should (equal buffer-contents "<?php\nif (empty($this->var)):\n    
$this->var = 'abc123';\nendif;"))))
 
   )
 



reply via email to

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