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

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

[elpa] externals/phps-mode f05d40a 230/405: Tests for lexer passes again


From: Stefan Monnier
Subject: [elpa] externals/phps-mode f05d40a 230/405: Tests for lexer passes again after close_tag modification
Date: Sat, 13 Jul 2019 10:00:19 -0400 (EDT)

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

    Tests for lexer passes again after close_tag modification
---
 phps-mode-test-lexer.el | 4 ++--
 phps-mode-test.el       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/phps-mode-test-lexer.el b/phps-mode-test-lexer.el
index e1d9497..26e3d5c 100644
--- a/phps-mode-test-lexer.el
+++ b/phps-mode-test-lexer.el
@@ -60,13 +60,13 @@
    "<html><head>blabla</head<body>\n\n \t<?php\nexit;\n?>\n\n</body></html>"
    nil
    (should (equal phps-mode-lexer-tokens
-                  '((T_OPEN_TAG 35 . 41) (T_EXIT 41 . 45) (";" 45 . 46) (";" 
47 . 50) (T_CLOSE_TAG 47 . 50)))))
+                  '((T_OPEN_TAG 35 . 41) (T_EXIT 41 . 45) (";" 45 . 46) (";" 
47 . 49) (T_CLOSE_TAG 47 . 49)))))
 
   (phps-mode-test-with-buffer
    "\n\n \t<html><title>echo 
\"Blaha\";</title><?php\n\n\nexit?>\n\n<html><random /></html><?php exit ?>"
    nil
    (should (equal phps-mode-lexer-tokens
-                  '((T_OPEN_TAG 39 . 45) (T_EXIT 47 . 51) (";" 51 . 54) 
(T_CLOSE_TAG 51 . 54) (T_OPEN_TAG 78 . 84) (T_EXIT 84 . 88) (";" 89 . 91) 
(T_CLOSE_TAG 89 . 91)))))
+                  '((T_OPEN_TAG 39 . 45) (T_EXIT 47 . 51) (";" 51 . 53) 
(T_CLOSE_TAG 51 . 53) (T_OPEN_TAG 78 . 84) (T_EXIT 84 . 88) (";" 89 . 91) 
(T_CLOSE_TAG 89 . 91)))))
 
   )
 
diff --git a/phps-mode-test.el b/phps-mode-test.el
index ffdad6f..02d196f 100644
--- a/phps-mode-test.el
+++ b/phps-mode-test.el
@@ -34,7 +34,7 @@
      (switch-to-buffer test-buffer)
      (insert ,source)
      (goto-char 0)
-     ;;,(message "\nTesting buffer:\n'%s'\n" source)
+     (message "\nTesting buffer:\n'%s'\n" ,source)
      (phps-mode)
      ,@body
      (kill-buffer test-buffer)



reply via email to

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